mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix broke dpi
This commit is contained in:
parent
8984e3a496
commit
53324b3d08
1 changed files with 2 additions and 2 deletions
|
|
@ -363,8 +363,8 @@ class Settings {
|
|||
Settings.zoomRatio = zoomRatio;
|
||||
#end
|
||||
#if hl
|
||||
Settings.optionsSettings.screenWidth = cast wnd.width / zoomRatio;
|
||||
Settings.optionsSettings.screenHeight = cast wnd.height / zoomRatio;
|
||||
Settings.optionsSettings.screenWidth = cast wnd.width;
|
||||
Settings.optionsSettings.screenHeight = cast wnd.height;
|
||||
#end
|
||||
#if js
|
||||
Settings.optionsSettings.screenWidth = cast js.Browser.window.screen.width; // 1024; // cast(js.Browser.window.innerWidth / js.Browser.window.innerHeight) * 768; // cast js.Browser.window.innerWidth * js.Browser.window.devicePixelRatio * 0.5;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue