[WIN32SS] Set DISPLAY_DEVICE_PRIMARY_DEVICE flag

This flag was not set anymore since 2d2824f1b9
Note that this is still wrong for multi-monitor.

CORE-18169
This commit is contained in:
Hervé Poussineau 2022-04-30 21:59:44 +02:00
parent 1d66a0aa19
commit d1cd80c861

View file

@ -493,7 +493,7 @@ PDEVOBJ_Create(
{
RtlCopyMemory(ppdev->pdmwDev, pdm, pdm->dmSize + pdm->dmDriverExtra);
/* FIXME: this must be done in a better way */
pGraphicsDevice->StateFlags |= DISPLAY_DEVICE_ATTACHED_TO_DESKTOP;
pGraphicsDevice->StateFlags |= DISPLAY_DEVICE_PRIMARY_DEVICE | DISPLAY_DEVICE_ATTACHED_TO_DESKTOP;
}
}