Skip to content

Commit

Permalink
DisplayServer (macOS): fix building on ancient macOS version
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Aug 23, 2024
1 parent 1c5b261 commit 691993c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/detection/displayserver/displayserver_apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 691993c

Please sign in to comment.