vesacon: if mode set failed, assume screen is unchanged
authorH. Peter Anvin <hpa@zytor.com>
Wed, 13 Sep 2006 00:42:40 +0000 (17:42 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 13 Sep 2006 00:42:40 +0000 (17:42 -0700)
com32/lib/sys/vesa/initvesa.c

index 53ab4b7..8d7ab47 100644 (file)
@@ -179,11 +179,8 @@ static int vesacon_set_mode(void)
   rm.eax.w[0] = 0x4F02;                /* Set SVGA video mode */
   rm.ebx.w[0] = mode | 0x4000; /* Clear video RAM, use linear fb */
   __intcall(0x10, &rm, &rm);
-  if ( rm.eax.w[0] != 0x004F ) {
-    rm.eax.w[0] = 0x0003;      /* Set regular text mode */
-    __intcall(0x10, &rm, NULL);
+  if ( rm.eax.w[0] != 0x004F )
     return 9;                  /* Failed to set mode */
-  }
 
   /* Tell syslinux we changed video mode */
   rm.eax.w[0] = 0x0017;                /* Report video mode change */