Browse Source

Made sure the window had the correct border when manually being brought back from fullscreen mode.

Sam Lantinga 11 years ago
parent
commit
7459b159e0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/video/cocoa/SDL_cocoawindow.m

+ 3 - 0
src/video/cocoa/SDL_cocoawindow.m

@@ -460,7 +460,10 @@ GetWindowStyle(SDL_Window * window)
     NSWindow *nswindow = _data->nswindow;
 
     if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
+        Uint32 flags = window->flags;
+        window->flags &= ~SDL_WINDOW_FULLSCREEN_DESKTOP;
         [nswindow setStyleMask:GetWindowStyle(window)];
+        window->flags = flags;
     }
 
     isFullscreen = NO;