DisplayServer (macOS): fix building on ancient macOS version

Fix #1190
This commit is contained in:
Carter Li
2024-08-15 19:01:23 +08:00
parent 63971fd245
commit e0d733f030
@@ -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);
}