mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 21:15:31 +00:00
Only show the window if it's supposed to be shown.
This commit is contained in:
parent
c663d731f1
commit
9245c93044
|
@ -613,8 +613,11 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
||||||
window->h = 0;
|
window->h = 0;
|
||||||
[self windowDidResize:aNotification];
|
[self windowDidResize:aNotification];
|
||||||
|
|
||||||
|
/* FIXME: Why does the window get hidden? */
|
||||||
|
if (window->flags & SDL_WINDOW_SHOWN) {
|
||||||
Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
|
Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-(NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions
|
-(NSApplicationPresentationOptions)window:(NSWindow *)window willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions
|
||||||
|
|
Loading…
Reference in a new issue