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:
parent
7e077258c5
commit
b3404c8c44
|
@ -1478,7 +1478,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);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue