diff options
author | Mattias Cibien <mattias@mattiascibien.net> | 2016-05-03 15:56:38 +0200 |
---|---|---|
committer | Mattias Cibien <mattias@mattiascibien.net> | 2016-05-03 15:58:05 +0200 |
commit | 8fb7280f39600b1fec6f5a88fba29aecb0caa9b4 (patch) | |
tree | 2e02b33c34163d4cbb9040f2b142eb89fbc6efbb | |
parent | 4e23ba5f37e21021c47e3aecf544afc9485e311b (diff) |
Fixed behavior of OS.set_window_resizable
Should fix #4428.
* Minimize button is not hidden anymore
-rw-r--r-- | platform/windows/os_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index d0453f0d8e..352b7d645f 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1479,7 +1479,7 @@ void OS_Windows::set_window_resizable(bool p_enabled){ if (p_enabled) { SetWindowLongPtr(hWnd, GWL_STYLE, WS_OVERLAPPEDWINDOW | WS_VISIBLE); } else { - SetWindowLongPtr(hWnd, GWL_STYLE, WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE); + SetWindowLongPtr(hWnd, GWL_STYLE, WS_CAPTION | WS_MINIMIZEBOX | WS_POPUPWINDOW | WS_VISIBLE); } |