Commit f430ef5ddcd84ac0bb6c20308480df410931ac73

Sam Lantinga 2022-11-10T17:27:48

Don't change the window position when creating it on iOS, it is already placed on the correct display

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/video/uikit/SDL_uikitwindow.m b/src/video/uikit/SDL_uikitwindow.m
index 433c80e..7b8dfff 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;