Made sure the window had the correct border when manually being brought back from fullscreen mode.
authorSam Lantinga <slouken@libsdl.org>
Mon, 11 Nov 2013 23:42:43 -0800
changeset 7966 ef27c2dbeb8f
parent 7965 d3cbe8ecb1af
child 7967 75f04553360a
Made sure the window had the correct border when manually being brought back from fullscreen mode.
src/video/cocoa/SDL_cocoawindow.m
--- a/src/video/cocoa/SDL_cocoawindow.m	Mon Nov 11 22:43:05 2013 -0800
+++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Nov 11 23:42:43 2013 -0800
@@ -460,7 +460,10 @@
     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;