mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-02-27 08:31:00 +00:00
fix zoom shit again
This commit is contained in:
parent
26c9cf49fb
commit
2383e72115
2 changed files with 7 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ class Main extends hxd.App {
|
|||
#if hl
|
||||
hl.UI.closeConsole();
|
||||
#end
|
||||
#if js
|
||||
var zoomRatio = js.Browser.window.devicePixelRatio;
|
||||
s2d.scaleMode = Zoom(zoomRatio);
|
||||
#end
|
||||
ResourceLoader.init(s2d, () -> {
|
||||
Settings.init();
|
||||
AudioManager.init();
|
||||
|
|
|
|||
|
|
@ -193,6 +193,9 @@ class Settings {
|
|||
Window.getInstance().resize(optionsSettings.screenWidth, optionsSettings.screenHeight);
|
||||
Window.getInstance().displayMode = optionsSettings.isFullScreen ? FullscreenResize : Windowed;
|
||||
#end
|
||||
#if js
|
||||
Window.getInstance().propagateKeyEvents = true;
|
||||
#end
|
||||
// @:privateAccess Window.getInstance().window.center();
|
||||
Window.getInstance().addResizeEvent(() -> {
|
||||
var wnd = Window.getInstance();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue