mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2025-02-20 11:43:27 +08:00
Monitor (macOS): fix building
This commit is contained in:
parent
d05cbc0af0
commit
045d7052d1
@ -49,7 +49,7 @@ static const char* detectWithDisplayServices(const FFDisplayServerResult* displa
|
||||
{
|
||||
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;
|
||||
@ -120,7 +120,7 @@ static const char* detectWithDdcci(FFlist* results)
|
||||
ffStrbufInit(&display->name);
|
||||
ffEdidGetName(edidData, &display->name);
|
||||
ffEdidGetPhysicalSize(edidData, &display->physicalWidth, &display->physicalHeight);
|
||||
monitor->hdrCompatible = false;
|
||||
display->hdrCompatible = false;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user