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

Fixed behavior of OS.set_window_resizable
This commit is contained in:
Rémi Verschelde
2016-05-03 19:17:57 +02:00

View File

@@ -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);
}