From f430ef5ddcd84ac0bb6c20308480df410931ac73 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 10 Nov 2022 17:27:48 -0800 Subject: [PATCH] Don't change the window position when creating it on iOS, it is already placed on the correct display --- src/video/uikit/SDL_uikitwindow.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/uikit/SDL_uikitwindow.m b/src/video/uikit/SDL_uikitwindow.m index 433c80ee1..7b8dfff56 100644 --- a/src/video/uikit/SDL_uikitwindow.m +++ b/src/video/uikit/SDL_uikitwindow.m @@ -136,8 +136,10 @@ SetupWindowData(_THIS, SDL_Window *window, UIWindow *uiwindow, SDL_bool created) } #endif /* !TARGET_OS_TV */ +#if 0 /* Don't set the x/y position, it's already placed on a display */ window->x = 0; window->y = 0; +#endif window->w = width; window->h = height;