revert hack code

This commit is contained in:
jerrywwl
2019-04-04 12:19:17 +08:00
parent f24c3a3e62
commit 1094ab0fcb
+4
View File
@@ -699,8 +699,12 @@ class Game extends EventTarget {
this._gfxDevice = new cc.WebGLGFXDevice();
}
cc.view.enableRetina(true)
cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
cc.view._initFrameSize();
let nativeWidth = Math.floor(screen.width * cc.view._devicePixelRatio);
let nativeHeight = Math.floor(screen.height * cc.view._devicePixelRatio);
this._gfxDevice.initialize({
canvasElm: localCanvas,
debug: true,