fix again

This commit is contained in:
RandomityGuy 2024-06-24 23:29:59 +05:30
parent ba0dd018ab
commit 424127e527
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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