Browse Source

windows: fix borderless windows at desktop resolution (thanks, Evgeny!).

Fixes Bugzilla #3404.
Ryan C. Gordon 8 years ago
parent
commit
f2fcd324c5
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/video/windows/SDL_windowsevents.c

+ 7 - 0
src/video/windows/SDL_windowsevents.c

@@ -765,6 +765,13 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
         break;
 #endif /* WM_GETMINMAXINFO */
 
+    case WM_WINDOWPOSCHANGING:
+
+        if (data->expected_resize) {
+            returnCode = 0;
+        }
+        break;
+
     case WM_WINDOWPOSCHANGED:
         {
             RECT rect;