Skip to content

Commit

Permalink
Monitor (macOS): fix building
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Aug 11, 2023
1 parent d05cbc0 commit 045d705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detection/monitor/monitor_apple.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{
if (screen == mainScreen) continue;
NSNumber* screenNumber = [screen.deviceDescription valueForKey:@"NSScreenNumber"];
if (screenNumber && screenNumber.longValue == 1)
if (screenNumber && screenNumber.longValue == (long) display->id)
{
monitor->hdrCompatible = screen.maximumPotentialExtendedDynamicRangeColorComponentValue > 1;
break;
Expand Down Expand Up @@ -120,7 +120,7 @@
ffStrbufInit(&display->name);
ffEdidGetName(edidData, &display->name);
ffEdidGetPhysicalSize(edidData, &display->physicalWidth, &display->physicalHeight);
monitor->hdrCompatible = false;
display->hdrCompatible = false;
}
return NULL;
}
Expand Down

0 comments on commit 045d705

Please sign in to comment.