Fix: [Win32] Original window size was lost when tabbing in and out of fullscreen.

This commit is contained in:
Michael Lutz 2021-03-01 23:18:53 +01:00
parent 74aa934441
commit b7a44983b4
1 changed files with 2 additions and 0 deletions

View File

@ -715,7 +715,9 @@ LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
if (video_driver->fullscreen) {
if (active && minimized) {
/* Restore the game window */
Dimension d = _bck_resolution; // Save current non-fullscreen window size as it will be overwritten by ShowWindow.
ShowWindow(hwnd, SW_RESTORE);
_bck_resolution = d;
video_driver->MakeWindow(true);
} else if (!active && !minimized) {
/* Minimise the window and restore desktop */