mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Properly fill DEVMODE
svn path=/trunk/; revision=13873
This commit is contained in:
parent
907b461720
commit
0537266be6
1 changed files with 3 additions and 0 deletions
|
@ -266,6 +266,9 @@ DrvEnablePDEV(IN DEVMODEW *DM,
|
|||
GDIInfoSize = sizeof(GDIINFO);
|
||||
}
|
||||
memcpy(GDIInfo, &gaulCap, GDIInfoSize);
|
||||
DM->dmBitsPerPel = gaulCap.cBitsPixel * gaulCap.cPlanes;
|
||||
DM->dmPelsWidth = gaulCap.ulHorzRes;
|
||||
DM->dmPelsHeight = gaulCap.ulVertRes;
|
||||
|
||||
devinfoVGA.hpalDefault = EngCreatePalette(PAL_INDEXED, 16, (ULONG *) VGApalette.PaletteEntry, 0, 0, 0);
|
||||
if (sizeof(DEVINFO) < DevInfoSize)
|
||||
|
|
Loading…
Reference in a new issue