[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

@ -29,13 +29,13 @@ BOOL FASTCALL
IntCreatePrimarySurface(VOID)
{
/* Create surface */
PDEVOBJ_pSurface(gppdevPrimary);
PDEVOBJ_pSurface(gpmdev->ppdevGlobal);
DPRINT("IntCreatePrimarySurface, gppdevPrimary=%p, gppdevPrimary->pSurface = %p\n",
gppdevPrimary, gppdevPrimary->pSurface);
DPRINT("IntCreatePrimarySurface, ppdevGlobal=%p, ppdevGlobal->pSurface = %p\n",
gpmdev->ppdevGlobal, gpmdev->ppdevGlobal->pSurface);
// Init Primary Displays Device Capabilities.
PDEVOBJ_vGetDeviceCaps(gppdevPrimary, &GdiHandleTable->DevCaps);
PDEVOBJ_vGetDeviceCaps(gpmdev->ppdevGlobal, &GdiHandleTable->DevCaps);
return TRUE;
}
@ -51,7 +51,7 @@ IntEnumHDev(VOID)
{
// I guess we will soon have more than one primary surface.
// This will do for now.
return gppdevPrimary;
return gpmdev->ppdevGlobal;
}