]> git.vomp.tv Git - vompclient.git/commitdiff
Winmain fix
authorChris Tallon <chris@vomp.tv>
Tue, 15 Jul 2008 15:39:42 +0000 (15:39 +0000)
committerChris Tallon <chris@vomp.tv>
Tue, 15 Jul 2008 15:39:42 +0000 (15:39 +0000)
winmain.cc

index fc935c62ba228d7a054899c1551a2c9865230fb9..efa87d2efb53c0e46d6fc43f0d2d2f829f682548 100644 (file)
@@ -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: