made Game Center's welcome banner show by having SDL display its inner UIWindow once on SDL window initialization, rather than on every frame
authorDavid Ludwig <dludwig@pobox.com>
Sat, 21 Jul 2012 13:52:20 -0400
changeset 83060e9d258470b3
parent 8305 3d522e6d4ae1
child 8307 96ded98670c7
made Game Center's welcome banner show by having SDL display its inner UIWindow once on SDL window initialization, rather than on every frame
src/video/uikit/SDL_uikitopengles.m
src/video/uikit/SDL_uikitwindow.m
     1.1 --- a/src/video/uikit/SDL_uikitopengles.m	Wed Jul 18 22:26:47 2012 -0400
     1.2 +++ b/src/video/uikit/SDL_uikitopengles.m	Sat Jul 21 13:52:20 2012 -0400
     1.3 @@ -90,9 +90,6 @@
     1.4          return;
     1.5      }
     1.6      [data->view swapBuffers];
     1.7 -    /* since now we've got something to draw
     1.8 -       make the window visible */
     1.9 -    [data->uiwindow makeKeyAndVisible];
    1.10  
    1.11      /* we need to let the event cycle run, or the OS won't update the OpenGL view! */
    1.12      SDL_PumpEvents();
     2.1 --- a/src/video/uikit/SDL_uikitwindow.m	Wed Jul 18 22:26:47 2012 -0400
     2.2 +++ b/src/video/uikit/SDL_uikitwindow.m	Sat Jul 21 13:52:20 2012 -0400
     2.3 @@ -200,6 +200,9 @@
     2.4      if (external) {
     2.5          [uiwindow setScreen:data->uiscreen];
     2.6      }
     2.7 +    
     2.8 +    // Make sure the native window gets displayed.
     2.9 +    [uiwindow makeKeyAndVisible];
    2.10  
    2.11      if (SetupWindowData(_this, window, uiwindow, SDL_TRUE) < 0) {
    2.12          [uiwindow release];