Skip to content

Commit

Permalink
Merge pull request godotengine#17058 from marcelofg55/minmax_windows
Browse files Browse the repository at this point in the history
Fixed Windows ignoring minimized/maximized status set by user
  • Loading branch information
akien-mga authored Mar 1, 2018
2 parents 3e03ed9 + f8da955 commit 7f3024d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion platform/windows/os_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 7f3024d

Please sign in to comment.