From 8fb7280f39600b1fec6f5a88fba29aecb0caa9b4 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 --- 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 d0453f0d8ec..352b7d645f8 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); }