Browse Source

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

Sam Lantinga 2 years ago
parent
commit
f430ef5ddc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/video/uikit/SDL_uikitwindow.m

+ 2 - 0
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;