From 551070ffbef0ed33c896237d47ea8814038f2356 Mon Sep 17 00:00:00 2001
From: FunkyFr3sh <cc.red.alert.1@googlemail.com>
Date: Sun, 2 Dec 2018 22:20:43 +0100
Subject: [PATCH] remove WS_MAXIMIZEBOX until maximize is fully supported

---
 src/main.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

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