strange - don't set px value for canvas width / height
parent
e8ca33ab8a
commit
bbd475a2e6
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue