mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
remove WS_MAXIMIZEBOX until maximize is fully supported
This commit is contained in:
parent
6b0fbce7f8
commit
551070ffbe
@ -766,7 +766,7 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
|
||||
}
|
||||
else
|
||||
{
|
||||
SetWindowLong(This->hWnd, GWL_STYLE, GetWindowLong(This->hWnd, GWL_STYLE) | WS_OVERLAPPEDWINDOW);
|
||||
SetWindowLong(This->hWnd, GWL_STYLE, (GetWindowLong(This->hWnd, GWL_STYLE) | WS_OVERLAPPEDWINDOW) & ~WS_MAXIMIZEBOX);
|
||||
}
|
||||
|
||||
if (ddraw->wine)
|
||||
@ -1148,11 +1148,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
exit(0);
|
||||
}
|
||||
if (wParam == SC_MAXIMIZE)
|
||||
{
|
||||
ToggleFullscreen();
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!GameHandlesClose)
|
||||
return DefWindowProc(hWnd, uMsg, wParam, lParam);
|
||||
|
Loading…
x
Reference in New Issue
Block a user