Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

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 20260f181d01b9e8af9b2251b6e31e69b67195bc
Showing with 3 additions and 3 deletions.
  1. +0 −3 src/video/uikit/SDL_uikitopengles.m
  2. +3 −0 src/video/uikit/SDL_uikitwindow.m
@@ -90,9 +90,6 @@ void UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
[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! */
@@ -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];

0 comments on commit 20260f1

Please sign in to comment.