Skip to content

Commit

Permalink
tvos: fix fetching refresh rate on tvos 13/14 (#17455)
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven authored Jan 22, 2025
1 parent c276577 commit 0903eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/display_servers/dispserv_apple.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static bool apple_display_server_set_resolution(void *data,

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
Expand Down

0 comments on commit 0903eea

Please sign in to comment.