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
133c783de0
commit
034aa75a22
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ class GuiControl {
|
|||
rect.position = parentRect.position.add(this.position.multiply(uiScaleFactor));
|
||||
}
|
||||
|
||||
var scaleFactor = 1.0;
|
||||
var scaleFactor = 1.0 / Window.getInstance().windowToPixelRatio;
|
||||
#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;
|
||||
#end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue