Skip to content

Commit

Permalink
Made sure the window had the correct border when manually being broug…
Browse files Browse the repository at this point in the history
…ht back from fullscreen mode.
  • Loading branch information
slouken committed Nov 12, 2013
1 parent cb190b8 commit 7459b15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -460,7 +460,10 @@ - (void)windowWillExitFullScreen:(NSNotification *)aNotification
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;
Expand Down

0 comments on commit 7459b15

Please sign in to comment.