Only show the window if it's supposed to be shown.
This commit is contained in:
parent
598897b601
commit
ecc7d16d69
1 changed files with 4 additions and 1 deletions
|
@ -613,7 +613,10 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
|||
window->h = 0;
|
||||
[self windowDidResize:aNotification];
|
||||
|
||||
Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
|
||||
/* FIXME: Why does the window get hidden? */
|
||||
if (window->flags & SDL_WINDOW_SHOWN) {
|
||||
Cocoa_ShowWindow(SDL_GetVideoDevice(), window);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue