Fix for the Game Center status window always being behind the SDL window (untested!)
This commit is contained in:
parent
2bcad88c29
commit
6d35992e47
4 changed files with 20 additions and 4 deletions
|
@ -90,13 +90,9 @@ void UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
[data->view swapBuffers];
|
[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! */
|
/* we need to let the event cycle run, or the OS won't update the OpenGL view! */
|
||||||
SDL_PumpEvents();
|
SDL_PumpEvents();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_GLContext UIKit_GL_CreateContext(_THIS, SDL_Window * window)
|
SDL_GLContext UIKit_GL_CreateContext(_THIS, SDL_Window * window)
|
||||||
|
|
|
@ -83,6 +83,8 @@ UIKit_CreateDevice(int devindex)
|
||||||
device->SetDisplayMode = UIKit_SetDisplayMode;
|
device->SetDisplayMode = UIKit_SetDisplayMode;
|
||||||
device->PumpEvents = UIKit_PumpEvents;
|
device->PumpEvents = UIKit_PumpEvents;
|
||||||
device->CreateWindow = UIKit_CreateWindow;
|
device->CreateWindow = UIKit_CreateWindow;
|
||||||
|
device->ShowWindow = UIKit_ShowWindow;
|
||||||
|
device->HideWindow = UIKit_HideWindow;
|
||||||
device->SetWindowFullscreen = UIKit_SetWindowFullscreen;
|
device->SetWindowFullscreen = UIKit_SetWindowFullscreen;
|
||||||
device->DestroyWindow = UIKit_DestroyWindow;
|
device->DestroyWindow = UIKit_DestroyWindow;
|
||||||
device->GetWindowWMInfo = UIKit_GetWindowWMInfo;
|
device->GetWindowWMInfo = UIKit_GetWindowWMInfo;
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
typedef struct SDL_WindowData SDL_WindowData;
|
typedef struct SDL_WindowData SDL_WindowData;
|
||||||
|
|
||||||
extern int UIKit_CreateWindow(_THIS, SDL_Window * window);
|
extern int UIKit_CreateWindow(_THIS, SDL_Window * window);
|
||||||
|
extern void UIKit_ShowWindow(_THIS, SDL_Window * window);
|
||||||
|
extern void UIKit_HideWindow(_THIS, SDL_Window * window);
|
||||||
extern void UIKit_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display, SDL_bool fullscreen);
|
extern void UIKit_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display, SDL_bool fullscreen);
|
||||||
extern void UIKit_DestroyWindow(_THIS, SDL_Window * window);
|
extern void UIKit_DestroyWindow(_THIS, SDL_Window * window);
|
||||||
extern SDL_bool UIKit_GetWindowWMInfo(_THIS, SDL_Window * window,
|
extern SDL_bool UIKit_GetWindowWMInfo(_THIS, SDL_Window * window,
|
||||||
|
|
|
@ -210,6 +210,22 @@ UIKit_CreateWindow(_THIS, SDL_Window *window)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
UIKit_ShowWindow(_THIS, SDL_Window * window)
|
||||||
|
{
|
||||||
|
UIWindow *uiwindow = ((SDL_WindowData *) window->driverdata)->uiwindow;
|
||||||
|
|
||||||
|
[uiwindow makeKeyAndVisible];
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
UIKit_HideWindow(_THIS, SDL_Window * window)
|
||||||
|
{
|
||||||
|
UIWindow *uiwindow = ((SDL_WindowData *) window->driverdata)->uiwindow;
|
||||||
|
|
||||||
|
uiwindow.hidden = YES;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
UIKit_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display, SDL_bool fullscreen)
|
UIKit_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display, SDL_bool fullscreen)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue