mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:43:08 +00:00
[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:
parent
0f617ddfbb
commit
a0cfdcd409
15 changed files with 66 additions and 31 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue