tvos: fix fetching refresh rate on tvos 13/14 (#17455)

This commit is contained in:
Eric Warmenhoven 2025-01-22 14:43:02 -05:00 committed by GitHub
parent c276577b52
commit 0903eead06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,7 +140,7 @@ static void *apple_display_server_get_resolution_list(
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, *))
if (@available(iOS 15, tvOS 15, *))
currentRate = [CocoaView get].displayLink.preferredFrameRateRange.preferred;
else
#endif