File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -556,9 +556,9 @@ static enum rotation apple_display_server_get_screen_orientation(void *data)
556556 && settings->floats .video_refresh_rate >= 10 .0f
557557 && settings->floats .video_refresh_rate <= 250 .0f )
558558 {
559- float hz = settings->floats .video_refresh_rate ;
560- CocoaView *view = [CocoaView get ];
561559#if defined(IOS)
560+ float hz = settings->floats .video_refresh_rate ;
561+ CocoaView *view = [CocoaView get ];
562562 if (view && view.displayLink )
563563 {
564564 RARCH_DBG (" [Video] Setting initial refresh rate to %.3f Hz\n " , hz);
@@ -571,6 +571,8 @@ static enum rotation apple_display_server_get_screen_orientation(void *data)
571571 view.displayLink .preferredFramesPerSecond = hz;
572572 }
573573#elif defined(OSX) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 140000
574+ float hz = settings->floats .video_refresh_rate ;
575+ CocoaView *view = [CocoaView get ];
574576 if (view)
575577 {
576578 if (@available (macOS 14 , *))
You can’t perform that action at this time.
0 commit comments