diff --git a/src/main.c b/src/main.c index d0b048f..f3fb4db 100644 --- a/src/main.c +++ b/src/main.c @@ -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);