Fixed Windows ignoring minimized/maximized status set by user

This commit is contained in:
Marcelo Fernandez 2018-02-26 17:38:00 -03:00
parent 636e48b707
commit f8da9550f4
1 changed files with 10 additions and 1 deletions

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.width = window_w;
video_mode.height = window_h; 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; } break;
case WM_ENTERSIZEMOVE: { case WM_ENTERSIZEMOVE: {