From fd674011ad451884bb1f58f613b17c0bb42f242a Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Mon, 22 Aug 2022 19:16:07 +0530 Subject: [PATCH] minor stuff --- src/Settings.hx | 2 ++ src/collision/Grid.hx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Settings.hx b/src/Settings.hx index 92ee30e0..4a5300b0 100644 --- a/src/Settings.hx +++ b/src/Settings.hx @@ -115,8 +115,10 @@ class Settings { public static var isTouch:Option = Option.None; public static function applySettings() { + #if hl Window.getInstance().resize(optionsSettings.screenWidth, optionsSettings.screenHeight); Window.getInstance().displayMode = optionsSettings.isFullScreen ? FullscreenResize : Windowed; + #end AudioManager.updateVolumes(); MarbleGame.canvas.render(MarbleGame.canvas.scene2d); diff --git a/src/collision/Grid.hx b/src/collision/Grid.hx index 4abee5b1..2aad5d4a 100644 --- a/src/collision/Grid.hx +++ b/src/collision/Grid.hx @@ -9,7 +9,7 @@ class Grid { public var cellSize:Vector; // The dimensions of one cell - public static var CELL_DIV = new Vector(12, 12, 12); // split the bounds into cells of dimensions 1/16th of the corresponding dimensions of the bounds + public var CELL_DIV = new Vector(12, 12, 12); // split the bounds into cells of dimensions 1/16th of the corresponding dimensions of the bounds var map:Map> = new Map();