diff --git a/src/detection/displayserver/displayserver_apple.c b/src/detection/displayserver/displayserver_apple.c index d05eb8b1e..ab2abe5e2 100644 --- a/src/detection/displayserver/displayserver_apple.c +++ b/src/detection/displayserver/displayserver_apple.c @@ -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); }