diff --git a/src/game-lib-d3-renderer.js b/src/game-lib-d3-renderer.js index 5942e19..a3ead96 100644 --- a/src/game-lib-d3-renderer.js +++ b/src/game-lib-d3-renderer.js @@ -199,7 +199,8 @@ GameLib.D3.Renderer.prototype.createInstance = function() { this.instance.setSize( this.width * this.windowSize.x, - this.height * this.windowSize.y + this.height * this.windowSize.y, + false ); this.canvas.instance.style.left = (this.offset.x * this.windowSize.x) + 'px'; @@ -290,7 +291,7 @@ GameLib.D3.Renderer.prototype.updateInstance = function(property) { this.editCamera.aspect = trueWidth / trueHeight; this.editCamera.updateInstance('aspect'); - this.instance.setSize(trueWidth, this.height * this.windowSize.y); + this.instance.setSize(trueWidth, trueHeight, false); } if (property === 'height') { @@ -307,7 +308,7 @@ GameLib.D3.Renderer.prototype.updateInstance = function(property) { this.editCamera.aspect = trueWidth / trueHeight; this.editCamera.updateInstance('aspect'); - this.instance.setSize(this.width * this.windowSize.x, trueHeight); + this.instance.setSize(trueWidth, trueHeight, false); } if (property === 'widthheight') { @@ -327,7 +328,7 @@ GameLib.D3.Renderer.prototype.updateInstance = function(property) { this.editCamera.aspect = trueWidth / trueHeight; this.editCamera.updateInstance('aspect'); - this.instance.setSize(trueWidth, trueHeight); + this.instance.setSize(trueWidth, trueHeight, false); } if (property === 'renderMode') { @@ -461,7 +462,8 @@ GameLib.D3.Renderer.prototype.updateInstance = function(property) { this.instance.setSize( trueWidth, - trueHeight + trueHeight, + false ); this.canvas.instance.style.left = (this.offset.x * this.windowSize.x) + 'px';