Merge pull request #17058 from marcelofg55/minmax_windows

Fixed Windows ignoring minimized/maximized status set by user
This commit is contained in:
Rémi Verschelde 2018-03-01 13:31:02 +01:00 committed by GitHub
commit 7f3024d343
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -632,7 +632,16 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
video_mode.width = window_w;
video_mode.height = window_h;
}
//return 0; // Jump Back
if (wParam == SIZE_MAXIMIZED) {
maximized = true;
minimized = false;
} else if (wParam == SIZE_MINIMIZED) {
maximized = false;
minimized = true;
} else if (wParam == SIZE_RESTORED) {
maximized = false;
minimized = false;
}
} break;
case WM_ENTERSIZEMOVE: {