DisplayServer (macOS): fix building on ancient macOS version

Fix #1190
This commit is contained in:
Carter Li committed 2024-08-15 19:01:33 +08:00
1 parent 63971fd245
commit e0d733f030
1 file changed
+2
@@ -89,10 +89,12 @@ static void detectDisplays(FFDisplayServerResult* ds)
display->bitDepth = (uint8_t) bitDepth;
}
#ifdef MAC_OS_X_VERSION_10_15
if (CoreDisplay_Display_IsHDRModeEnabled)
{
display->hdrEnabled = CoreDisplay_Display_IsHDRModeEnabled(screen);
}
#endif
}
CGDisplayModeRelease(mode);
}