summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-03 19:17:57 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-03 19:17:57 +0200
commite0d27c55237d4f61910b1e72b744fc043e9b6bff (patch)
treea878c0623783b5f5e58bc1929a1876eecd4efed1
parentc90bc695447b5d74227ed7c0d0bc19b7141dc835 (diff)
parent8fb7280f39600b1fec6f5a88fba29aecb0caa9b4 (diff)
Merge pull request #4536 from mattiascibien/fix-set-window-resizable-win
Fixed behavior of OS.set_window_resizable
-rw-r--r--platform/windows/os_windows.cpp2
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);
}