From 6f0585a12a4ff409c5427ceb29dfe8f93060a2f0 Mon Sep 17 00:00:00 2001 From: Yoshman29 Date: Fri, 28 Oct 2022 00:46:05 +0200 Subject: [PATCH] gonna try smth --- buildnumber.txt | 2 +- source/funkin/desktop/windows/Window.hx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 } }