Display: don't report screen size when display is mirrored

Fix #1406
This commit is contained in:
李通洲 2024-11-21 15:29:14 +08:00
parent 71b073e1bf
commit 9a1d18556d
No known key found for this signature in database
GPG Key ID: 269AD4F5325A22A3

View File

@ -108,7 +108,7 @@ static void detectDisplays(FFDisplayServerResult* ds)
}
}
if (!physicalWidth || !physicalHeight)
if ((!physicalWidth || !physicalHeight) && CGDisplayPrimaryDisplay(screen) == screen) // #1406
{
CGSize size = CGDisplayScreenSize(screen);
physicalWidth = (uint32_t) (size.width + 0.5);