From f24c3a3e62a6f7aee69b754d623404fb1980daaa Mon Sep 17 00:00:00 2001 From: pandamicro Date: Thu, 4 Apr 2019 11:53:42 +0800 Subject: [PATCH] Move scene adaptation to boot (#4142) --- cocos/core/game.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cocos/core/game.js b/cocos/core/game.js index 11eba66dc7..ce9cf9d7ee 100644 --- a/cocos/core/game.js +++ b/cocos/core/game.js @@ -699,12 +699,8 @@ 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,