From 17cb0ba9e92b32571889d0b61d22d4b5a616fcbb Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 11 Jul 2016 12:44:22 +0800 Subject: [PATCH] 1 --- game/game.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game/game.js b/game/game.js index 7c946c542..2ea7fc324 100755 --- a/game/game.js +++ b/game/game.js @@ -3253,6 +3253,9 @@ if(window.isNonameServer){ lib.config.mode='connect'; } + if(lib.device=='android'&&lib.config.layout=='phone'&&window.devicePixelRatio>1&&document.documentElement.offsetWidth<960){ + document.documentElement.style.zoom=document.documentElement.offsetWidth/960; + } for(i in character.pack){ if(lib.config.hiddenCharacterPack.indexOf(i)==-1){