[WIN32SS] Introduce the MDEVOBJ structure

This will be used (later) to store the list of all enabled display devices.

Add a global variable gpmdev (should really be stored in DISPLAYINFO structure)
Replace global variable gppdevPrimary by pmdev->ppdevGlobal.
This commit is contained in:
Hervé Poussineau 2022-03-20 15:38:20 +01:00 committed by hpoussin
parent 0f617ddfbb
commit a0cfdcd409
15 changed files with 66 additions and 31 deletions

View file

@ -144,7 +144,7 @@ DC_vInitDc(
pdc->pdcattr = &pdc->dcattr;
pdc->dcattr.pvLDC = NULL;
pdc->dcattr.ulDirty_ = DIRTY_DEFAULT;
if (ppdev == gppdevPrimary)
if (ppdev == gpmdev->ppdevGlobal)
pdc->dcattr.ulDirty_ |= DC_PRIMARY_DISPLAY;
/* Setup the DC size */