Explorar o código

Fixed behavior of OS.set_window_resizable

Should fix #4428. 
 * Minimize button is not hidden anymore
Mattias Cibien %!s(int64=9) %!d(string=hai) anos
pai
achega
8fb7280f39
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platform/windows/os_windows.cpp

+ 1 - 1
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);
 
 		}