mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-25 01:12:53 +00:00
fix again
This commit is contained in:
parent
1afbaffacf
commit
2679d178d5
2 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ class Main extends hxd.App {
|
|||
|
||||
#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 = 1.5;
|
||||
s2d.scaleMode = Zoom(zoomRatio);
|
||||
Settings.zoomRatio = zoomRatio;
|
||||
|
|
|
|||
|
|
@ -496,7 +496,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 = 1.5;
|
||||
Settings.zoomRatio = zoomRatio;
|
||||
#end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue