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 7966ef27c2dbeb8f
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
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Mon Nov 11 22:43:05 2013 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Nov 11 23:42:43 2013 -0800
     1.3 @@ -460,7 +460,10 @@
     1.4      NSWindow *nswindow = _data->nswindow;
     1.5  
     1.6      if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
     1.7 +        Uint32 flags = window->flags;
     1.8 +        window->flags &= ~SDL_WINDOW_FULLSCREEN_DESKTOP;
     1.9          [nswindow setStyleMask:GetWindowStyle(window)];
    1.10 +        window->flags = flags;
    1.11      }
    1.12  
    1.13      isFullscreen = NO;