fix again

This commit is contained in:
RandomityGuy 2024-06-24 23:29:59 +05:30
parent 9d483d2382
commit 87efa2ce51
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,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;

View file

@ -431,7 +431,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