Merge pull request #17787 from warmenhoven/warmenhoven/pr/ios9-build-fix
ios: ios9 build fix
This commit is contained in:
commit
a10dbbc1d0
|
@ -198,10 +198,12 @@ static void apple_display_server_set_screen_orientation(void *data, enum rotatio
|
||||||
[[CocoaView get] setShouldLockCurrentInterfaceOrientation:NO];
|
[[CocoaView get] setShouldLockCurrentInterfaceOrientation:NO];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 160000
|
||||||
if (@available(iOS 16.0, *))
|
if (@available(iOS 16.0, *))
|
||||||
{
|
{
|
||||||
[[CocoaView get] setNeedsUpdateOfSupportedInterfaceOrientations];
|
[[CocoaView get] setNeedsUpdateOfSupportedInterfaceOrientations];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum rotation apple_display_server_get_screen_orientation(void *data)
|
static enum rotation apple_display_server_get_screen_orientation(void *data)
|
||||||
|
|
Loading…
Reference in New Issue