mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 16:36:25 +00:00
Fixed window never being shown on iOS
This commit is contained in:
@@ -58,8 +58,6 @@ int Android_CreateWindow(_THIS, SDL_Window *window)
|
|||||||
window->w = Android_SurfaceWidth;
|
window->w = Android_SurfaceWidth;
|
||||||
window->h = Android_SurfaceHeight;
|
window->h = Android_SurfaceHeight;
|
||||||
|
|
||||||
window->flags &= ~SDL_WINDOW_HIDDEN;
|
|
||||||
|
|
||||||
/* One window, it always has focus */
|
/* One window, it always has focus */
|
||||||
SDL_SetMouseFocus(window);
|
SDL_SetMouseFocus(window);
|
||||||
SDL_SetKeyboardFocus(window);
|
SDL_SetKeyboardFocus(window);
|
||||||
|
@@ -99,9 +99,6 @@ static int SetupWindowData(_THIS, SDL_Window *window, UIWindow *uiwindow, SDL_bo
|
|||||||
|
|
||||||
data.uiwindow = uiwindow;
|
data.uiwindow = uiwindow;
|
||||||
|
|
||||||
/* only one window on iOS, always shown */
|
|
||||||
window->flags &= ~SDL_WINDOW_HIDDEN;
|
|
||||||
|
|
||||||
if (displaydata.uiscreen != [UIScreen mainScreen]) {
|
if (displaydata.uiscreen != [UIScreen mainScreen]) {
|
||||||
window->flags &= ~SDL_WINDOW_RESIZABLE; /* window is NEVER resizable */
|
window->flags &= ~SDL_WINDOW_RESIZABLE; /* window is NEVER resizable */
|
||||||
window->flags &= ~SDL_WINDOW_INPUT_FOCUS; /* never has input focus */
|
window->flags &= ~SDL_WINDOW_INPUT_FOCUS; /* never has input focus */
|
||||||
|
Reference in New Issue
Block a user