mirror of
https://github.com/yawut/SDL.git
synced 2026-08-27 19:24:30 -05:00
made Game Center's welcome banner show by having SDL display its inner UIWindow once on SDL window initialization, rather than on every frame
This commit is contained in:
@@ -90,9 +90,6 @@ void UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
|
||||
return;
|
||||
}
|
||||
[data->view swapBuffers];
|
||||
/* since now we've got something to draw
|
||||
make the window visible */
|
||||
[data->uiwindow makeKeyAndVisible];
|
||||
|
||||
/* we need to let the event cycle run, or the OS won't update the OpenGL view! */
|
||||
SDL_PumpEvents();
|
||||
|
||||
@@ -200,6 +200,9 @@ UIKit_CreateWindow(_THIS, SDL_Window *window)
|
||||
if (external) {
|
||||
[uiwindow setScreen:data->uiscreen];
|
||||
}
|
||||
|
||||
// Make sure the native window gets displayed.
|
||||
[uiwindow makeKeyAndVisible];
|
||||
|
||||
if (SetupWindowData(_this, window, uiwindow, SDL_TRUE) < 0) {
|
||||
[uiwindow release];
|
||||
|
||||
Reference in New Issue
Block a user