瀏覽代碼

Merge pull request #4536 from mattiascibien/fix-set-window-resizable-win

Fixed behavior of OS.set_window_resizable
Rémi Verschelde 9 年之前
父節點
當前提交
e0d27c5523
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {
 		if (p_enabled) {
 			SetWindowLongPtr(hWnd, GWL_STYLE, WS_OVERLAPPEDWINDOW | WS_VISIBLE);
 			SetWindowLongPtr(hWnd, GWL_STYLE, WS_OVERLAPPEDWINDOW | WS_VISIBLE);
 		} else {
 		} else {
-			SetWindowLongPtr(hWnd, GWL_STYLE, WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE);
+			SetWindowLongPtr(hWnd, GWL_STYLE, WS_CAPTION | WS_MINIMIZEBOX | WS_POPUPWINDOW | WS_VISIBLE);
 
 
 		}
 		}