mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix again
This commit is contained in:
parent
ba0dd018ab
commit
424127e527
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ class Main extends hxd.App {
|
|||
#end
|
||||
#if js
|
||||
var zoomRatio = (Util.isTouchDevice() && !Util.isTablet()) ? js.Browser.window.screen.height * js.Browser.window.devicePixelRatio / 768 : js.Browser.window.devicePixelRatio; // js.Browser.window.devicePixelRatio;
|
||||
if (Util.isIPhone())
|
||||
if (Util.isIPhone() && js.Browser.window.devicePixelRatio > 2.001)
|
||||
zoomRatio = 2;
|
||||
s2d.scaleMode = Zoom(zoomRatio);
|
||||
Settings.zoomRatio = zoomRatio;
|
||||
|
|
|
|||
|
|
@ -453,7 +453,7 @@ class Settings {
|
|||
var zoomRatio = Window.getInstance().windowToPixelRatio;
|
||||
#if js
|
||||
var zoomRatio = (Util.isTouchDevice() && !Util.isTablet()) ? js.Browser.window.screen.height * js.Browser.window.devicePixelRatio / 768 : js.Browser.window.devicePixelRatio; // 768 / js.Browser.window.innerHeight; // js.Browser.window.innerHeight * js.Browser.window.devicePixelRatio / 768;
|
||||
if (Util.isIPhone())
|
||||
if (Util.isIPhone() && js.Browser.window.devicePixelRatio > 2.001)
|
||||
zoomRatio = 2;
|
||||
Settings.zoomRatio = zoomRatio;
|
||||
#end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue