From b3404c8c444a393cb878610c5a275918984f4a0c Mon Sep 17 00:00:00 2001 From: Mattias Cibien Date: Tue, 3 May 2016 15:56:38 +0200 Subject: [PATCH] Fixed behavior of OS.set_window_resizable Should fix #4428. * Minimize button is not hidden anymore (cherry picked from commit 8fb7280f39600b1fec6f5a88fba29aecb0caa9b4) --- platform/windows/os_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index a943d5d6f4a..7f5f40b3a05 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1478,7 +1478,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); }