Browse Source

Set the requested window size on visionOS

Sam Lantinga 3 weeks ago
parent
commit
908216bbae
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/video/uikit/SDL_uikitwindow.m

+ 4 - 0
src/video/uikit/SDL_uikitwindow.m

@@ -234,6 +234,10 @@ bool UIKit_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properti
         if (!SetupWindowData(_this, window, uiwindow, true)) {
             return false;
         }
+
+#ifdef SDL_PLATFORM_VISIONOS
+        SDL_SetWindowSize(window, window->w, window->h);
+#endif
     }
 
     return true;