fix ratios

This commit is contained in:
RandomityGuy 2024-06-24 21:45:59 +05:30
parent 52343d9a45
commit ba0dd018ab
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,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())
zoomRatio = 1.5;
zoomRatio = 2;
s2d.scaleMode = Zoom(zoomRatio);
Settings.zoomRatio = zoomRatio;
Settings.optionsSettings.screenWidth = cast Math.max(js.Browser.window.screen.width,

View file

@ -454,7 +454,7 @@ class Settings {
#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())
zoomRatio = 1.5;
zoomRatio = 2;
Settings.zoomRatio = zoomRatio;
#end
#if android