diff --git a/buildnumber.txt b/buildnumber.txt index e7fdd11f..773855c9 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -807 \ No newline at end of file +810 \ No newline at end of file diff --git a/source/funkin/desktop/windows/Window.hx b/source/funkin/desktop/windows/Window.hx index 9e1171cf..184f337b 100644 --- a/source/funkin/desktop/windows/Window.hx +++ b/source/funkin/desktop/windows/Window.hx @@ -157,7 +157,7 @@ class Window extends FlxTypedGroup { public function onDesktopSizeChange(width:Int, height:Int) { if (maximized) { - resize(width, height); + resize(width, Std.int(height - DesktopMain.theme.captionActive.top + DesktopMain.theme.captionActive.left)); } content.onDesktopSizeChange(width, height); } @@ -166,8 +166,8 @@ class Window extends FlxTypedGroup { if (maximized != (maximized = true)) { // maximizing!! captionButtons.members[1].animation.play("restore", true); - move(-DesktopMain.theme.window.left, -DesktopMain.theme.window.left); - resize(FlxG.width, FlxG.height); // TODO: taskbar stuff + move(-DesktopMain.theme.captionActive.left, -DesktopMain.theme.captionActive.left); + resize(FlxG.width, Std.int(FlxG.height - DesktopMain.theme.captionActive.top + DesktopMain.theme.captionActive.left)); // TODO: taskbar stuff } }