Fixed behavior of OS.set_window_resizable

Should fix #4428.
 * Minimize button is not hidden anymore
(cherry picked from commit 8fb7280f39)
This commit is contained in:
Mattias Cibien 2016-05-03 15:56:38 +02:00 committed by Rémi Verschelde
parent 7e077258c5
commit b3404c8c44
1 changed files with 1 additions and 1 deletions

View File

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