From 812a13c871249dff42c7cd2bc9ea6eb1ad6caa2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 1 Aug 2024 16:41:02 +0800 Subject: [PATCH] Display (macOS): fix invalid refresh rate in old mac --- src/detection/displayserver/displayserver_apple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/displayserver/displayserver_apple.c b/src/detection/displayserver/displayserver_apple.c index 53baf7092..d2e87ecf2 100644 --- a/src/detection/displayserver/displayserver_apple.c +++ b/src/detection/displayserver/displayserver_apple.c @@ -37,7 +37,7 @@ static void detectDisplays(FFDisplayServerResult* ds) { const CVTime time = CVDisplayLinkGetNominalOutputVideoRefreshPeriod(link); if (!(time.flags & kCVTimeIsIndefinite)) - refreshRate = time.timeScale / (double) time.timeValue + 0.5; //59.97... + refreshRate = time.timeScale / (double) time.timeValue; //59.97... CVDisplayLinkRelease(link); } }