mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Properly fill DEVMODE
svn path=/trunk/; revision=13873
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user