Fixed window never being shown on iOS

This commit is contained in:
Sam Lantinga
2023-01-12 12:44:53 -08:00
parent 1e8443f54e
commit 6dc50a78fc
2 changed files with 0 additions and 5 deletions

View File

@@ -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);

View File

@@ -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 */