mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
We get a resize event when the view enters fullscreen mode on iOS
The call stack is: We want to use this instead of the desktop mode because the view may be in a different orientation than the device orientation, which the desktop mode is based on.
This commit is contained in:
parent
e3b5999bb4
commit
1bf78ed544
1 changed files with 2 additions and 0 deletions
|
|
@ -131,6 +131,8 @@ static SDL_VideoDevice *UIKit_CreateDevice(void)
|
|||
device->Metal_GetLayer = UIKit_Metal_GetLayer;
|
||||
#endif
|
||||
|
||||
device->device_caps = VIDEO_DEVICE_CAPS_SENDS_FULLSCREEN_DIMENSIONS;
|
||||
|
||||
device->gl_config.accelerated = 1;
|
||||
|
||||
return device;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue