diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-02-26 17:38:00 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-02-26 17:38:00 -0300 |
commit | f8da9550f4946d438dc1a9074d039ea7a446c293 (patch) | |
tree | bf8041131f42ba0c3bbc4d60d4e895afda914f89 | |
parent | 636e48b707e0b3d062ca073b92e2fff47460baf5 (diff) |
Fixed Windows ignoring minimized/maximized status set by user
-rw-r--r-- | platform/windows/os_windows.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 20129299a1..8df4306729 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -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: { |