Prechádzať zdrojové kódy

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

Sam Lantinga 2 rokov pred
rodič
commit
f430ef5ddc
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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;