Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
made Game Center's welcome banner show by having SDL display its inne…
…r UIWindow once on SDL window initialization, rather than on every frame
  • Loading branch information
DavidLudwig committed Jul 21, 2012
1 parent 5f1642b commit 20260f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/video/uikit/SDL_uikitopengles.m
Expand Up @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions src/video/uikit/SDL_uikitwindow.m
Expand Up @@ -200,6 +200,9 @@ static int SetupWindowData(_THIS, SDL_Window *window, UIWindow *uiwindow, SDL_bo
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];
Expand Down

0 comments on commit 20260f1

Please sign in to comment.