Merge pull request #93733 from alvinhochun/windows-restore-sizing

Windows: Restore to windowed mode using `SW_NORMAL`
This commit is contained in:
Rémi Verschelde 2024-07-11 09:40:58 +02:00
commit 1b49d6393d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -2009,7 +2009,7 @@ void DisplayServerWindows::window_set_mode(WindowMode p_mode, WindowID p_window)
}
if (p_mode == WINDOW_MODE_WINDOWED) {
ShowWindow(wd.hWnd, SW_RESTORE);
ShowWindow(wd.hWnd, SW_NORMAL);
wd.maximized = false;
wd.minimized = false;
}