ios9: buildfix (#17131)

This commit is contained in:
Eric Warmenhoven 2024-10-28 19:38:19 -04:00 committed by GitHub
parent ede9ddcd05
commit f887ebe301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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, *))