mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix ratios
This commit is contained in:
parent
52343d9a45
commit
ba0dd018ab
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue