fix update canvas style
parent
fb539ea10a
commit
b97ef4eac4
|
@ -204,7 +204,7 @@ GameLib.Renderer.D3.prototype.updateInstance = function(property) {
|
||||||
property === 'height'
|
property === 'height'
|
||||||
) {
|
) {
|
||||||
var size = GameLib.Utils.GetWindowSize();
|
var size = GameLib.Utils.GetWindowSize();
|
||||||
this.instance.setSize(size.width, size.height);
|
this.instance.setSize(size.width, size.height, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -424,7 +424,7 @@ GameLib.Renderer.D3.prototype.setSize = function(width, height) {
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
this.instance.setPixelRatio(window.devicePixelRatio);
|
//this.instance.setPixelRatio(window.devicePixelRatio);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue