mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 02:00:41 +00:00
ios9: buildfix (#17131)
This commit is contained in:
parent
ede9ddcd05
commit
f887ebe301
@ -139,9 +139,11 @@ static void *apple_display_server_get_resolution_list(
|
||||
height = bounds.size.height * scale;
|
||||
|
||||
UIScreen *mainScreen = [UIScreen mainScreen];
|
||||
#if (TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000) || (TARGET_OS_TV && __TV_OS_VERSION_MAX_ALLOWED >= 150000)
|
||||
if (@available(iOS 15, *))
|
||||
currentRate = [CocoaView get].displayLink.preferredFrameRateRange.preferred;
|
||||
else
|
||||
#endif
|
||||
currentRate = [CocoaView get].displayLink.preferredFramesPerSecond;
|
||||
#if !TARGET_OS_TV
|
||||
if (@available(iOS 15, *))
|
||||
|
Loading…
Reference in New Issue
Block a user