Author: khornicek
Date: Fri Oct 14 18:09:30 2011
New Revision: 54139

URL: http://svn.reactos.org/svn/reactos?rev=54139&view=rev
Log:
[VGAMP]
Fix the confusion between mode index 12 and video mode 12h introduced more than 
six years ago. ReactOS should now boot again when VGA is selected in the 1st 
stage.

Modified:
    trunk/reactos/drivers/video/miniport/vga/vgamp.c

Modified: trunk/reactos/drivers/video/miniport/vga/vgamp.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/miniport/vga/vgamp.c?rev=54139&r1=54138&r2=54139&view=diff
==============================================================================
--- trunk/reactos/drivers/video/miniport/vga/vgamp.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/miniport/vga/vgamp.c [iso-8859-1] Fri Oct 14 
18:09:30 2011
@@ -440,21 +440,21 @@
                           OUT PSTATUS_BLOCK  StatusBlock)
 {
   CurrentMode->Length = sizeof(VIDEO_MODE_INFORMATION);
-  CurrentMode->ModeIndex = 12;
+  CurrentMode->ModeIndex = 2;
   CurrentMode->VisScreenWidth = 640;
   CurrentMode->VisScreenHeight = 480;
-  CurrentMode->ScreenStride = 320;
-  CurrentMode->NumberOfPlanes = 1;
-  CurrentMode->BitsPerPlane = 4;
+  CurrentMode->ScreenStride = 80;
+  CurrentMode->NumberOfPlanes = 4;
+  CurrentMode->BitsPerPlane = 1;
   CurrentMode->Frequency = 60;
-  CurrentMode->XMillimeter = 0; /* FIXME */
-  CurrentMode->YMillimeter = 0; /* FIXME */
+  CurrentMode->XMillimeter = 320;
+  CurrentMode->YMillimeter = 240;
   CurrentMode->NumberRedBits =
   CurrentMode->NumberGreenBits =
   CurrentMode->NumberBlueBits = 6;
   CurrentMode->RedMask =
   CurrentMode->GreenMask =
-  CurrentMode->BlueMask = 0; /* FIXME */
+  CurrentMode->BlueMask = 0;
   CurrentMode->VideoMemoryBitmapWidth = 640;
   CurrentMode->VideoMemoryBitmapHeight = 480;
   CurrentMode->AttributeFlags = VIDEO_MODE_GRAPHICS | VIDEO_MODE_COLOR |


Reply via email to