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:
David Ludwig
2012-07-21 13:52:20 -04:00
parent 76266d0aae
commit c1190a0258
2 changed files with 3 additions and 3 deletions

View File

@@ -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();

View File

@@ -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];