Properly fill DEVMODE
Modified: trunk/reactos/drivers/video/displays/vga/main/enable.c

Modified: trunk/reactos/drivers/video/displays/vga/main/enable.c
--- trunk/reactos/drivers/video/displays/vga/main/enable.c	2005-03-08 11:15:39 UTC (rev 13872)
+++ trunk/reactos/drivers/video/displays/vga/main/enable.c	2005-03-08 11:41:56 UTC (rev 13873)
@@ -266,6 +266,9 @@
     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)