Fixed window resizing when entering and leaving fullscreen mode

This commit is contained in:
Sam Lantinga 2013-11-11 21:38:11 -08:00
parent 7cf76ffbe0
commit 8f8070db42

View file

@ -451,12 +451,6 @@ GetWindowStyle(SDL_Window * window)
}
- (void)windowWillExitFullScreen:(NSNotification *)aNotification
{
isFullscreen = NO;
inFullscreenTransition = YES;
}
- (void)windowDidExitFullScreen:(NSNotification *)aNotification
{
SDL_Window *window = _data->window;
NSWindow *nswindow = _data->nswindow;
@ -464,6 +458,15 @@ GetWindowStyle(SDL_Window * window)
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
[nswindow setStyleMask:GetWindowStyle(window)];
}
isFullscreen = NO;
inFullscreenTransition = YES;
}
- (void)windowDidExitFullScreen:(NSNotification *)aNotification
{
NSWindow *nswindow = _data->nswindow;
inFullscreenTransition = NO;
if (pendingWindowOperation == PENDING_OPERATION_ENTER_FULLSCREEN) {