summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-03-01 13:31:02 +0100
committerGitHub <noreply@github.com>2018-03-01 13:31:02 +0100
commit7f3024d343aa1b14641ad5a7b56efaa1501550cf (patch)
treedf405de4a45a85f93361453e5d17d369cbf69dc8 /platform
parent3e03ed90a8e7a933cff02d0c46cd8d3b61a95f54 (diff)
parentf8da9550f4946d438dc1a9074d039ea7a446c293 (diff)
Merge pull request #17058 from marcelofg55/minmax_windows
Fixed Windows ignoring minimized/maximized status set by user
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/os_windows.cpp11
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: {