From ea3934f6f240f2a44b74ae3a3b760603a0a49377 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Tue, 15 Jul 2008 15:39:42 +0000 Subject: [PATCH] Winmain fix --- winmain.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/winmain.cc b/winmain.cc index fc935c6..efa87d2 100644 --- a/winmain.cc +++ b/winmain.cc @@ -561,6 +561,13 @@ LONG FAR PASCAL WindowProc(HWND wind, UINT msg, WPARAM wparam, LPARAM lparam) int width = LOWORD(lparam); int height = HIWORD(lparam); //Call device + if (wparam == SIZE_MAXIMIZED) { + ToggleFullscreen(); + return 0; + } else if (wparam == SIZE_MINIMIZED) { + ToggleFullscreen(); + return 0; + } } break; case WM_PAINT: -- 2.39.5