mirror of
https://github.com/love2d/megasource.git
synced 2026-08-21 05:02:11 +02:00
Upgrade to SDL2.0.3.
This commit is contained in:
@@ -587,6 +587,8 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
||||
|
||||
inFullscreenTransition = NO;
|
||||
|
||||
[nswindow setLevel:kCGNormalWindowLevel];
|
||||
|
||||
if (pendingWindowOperation == PENDING_OPERATION_ENTER_FULLSCREEN) {
|
||||
pendingWindowOperation = PENDING_OPERATION_NONE;
|
||||
[self setFullscreenSpace:YES];
|
||||
@@ -610,6 +612,11 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
||||
window->w = 0;
|
||||
window->h = 0;
|
||||
[self windowDidResize:aNotification];
|
||||
|
||||
/* FIXME: Why does the window get hidden? */
|
||||
if (window->flags & SDL_WINDOW_SHOWN) {
|
||||
Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user