mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix screeeen
This commit is contained in:
parent
e64082a609
commit
a913bded14
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ class GuiControl {
|
||||||
rect.position = parentRect.position.add(this.position.multiply(uiScaleFactor));
|
rect.position = parentRect.position.add(this.position.multiply(uiScaleFactor));
|
||||||
}
|
}
|
||||||
|
|
||||||
var scaleFactor = 1.0;
|
var scaleFactor = 1.0 / Window.getInstance().windowToPixelRatio;
|
||||||
#if (js || android)
|
#if (js || android)
|
||||||
scaleFactor = 1 / Settings.zoomRatio; // 768 / js.Browser.window.innerHeight * js.Browser.window.devicePixelRatio; // 0.5; // 768 / js.Browser.window.innerHeight; // js.Browser.window.innerHeight * js.Browser.window.devicePixelRatio / 768;
|
scaleFactor = 1 / Settings.zoomRatio; // 768 / js.Browser.window.innerHeight * js.Browser.window.devicePixelRatio; // 0.5; // 768 / js.Browser.window.innerHeight; // js.Browser.window.innerHeight * js.Browser.window.devicePixelRatio / 768;
|
||||||
#end
|
#end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue