Monitor (macOS): fix building

This commit is contained in:
李通洲 2023-08-11 19:37:23 +08:00
parent d05cbc0af0
commit 045d7052d1
No known key found for this signature in database
GPG Key ID: 269AD4F5325A22A3

View File

@ -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;
}