gonna try smth

This commit is contained in:
Yoshman29
2022-10-28 00:46:05 +02:00
parent 0aba35ccf3
commit 6f0585a12a
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
807
810
+3 -3
View File
@@ -157,7 +157,7 @@ class Window extends FlxTypedGroup<FlxBasic> {
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<FlxBasic> {
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
}
}