mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-01-25 16:35:57 +00:00
fix ratios
This commit is contained in:
parent
edfdea9b7b
commit
b6b931e2a6
2 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ class Main extends hxd.App {
|
|||
#if js
|
||||
var zoomRatio = (Util.isTouchDevice() && !Util.isTablet()) ? js.Browser.window.screen.height * js.Browser.window.devicePixelRatio / 600 : 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,
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ class Settings {
|
|||
#if js
|
||||
var zoomRatio = (Util.isTouchDevice() && !Util.isTablet()) ? js.Browser.window.screen.height * js.Browser.window.devicePixelRatio / 600 : 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