Properly fill DEVMODE

svn path=/trunk/; revision=13873
This commit is contained in:
Gé van Geldorp 2005-03-08 11:41:56 +00:00
parent 907b461720
commit 0537266be6

View file

@ -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)