]> xenbits.xensource.com Git - seabios.git/commitdiff
vgabios: Ignore mode flags in vbe get_mode_info call.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 3 Sep 2012 17:54:28 +0000 (13:54 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 3 Sep 2012 17:54:28 +0000 (13:54 -0400)
Ignore any mode flags a caller may have set on the vbe get_mode_info
call.  The spec doesn't require ignoring of flags, but it appears at
least some real-world vgabios vbe implementations do this.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
vgasrc/vbe.c

index 227a244a1ebfcad08f0e9abf567ef686ac27a4f8..01c80719621cd20881ac2d084ea4157daec6f167 100644 (file)
@@ -74,7 +74,7 @@ vbe_104f01(struct bregs *regs)
 
     dprintf(1, "VBE mode info request: %x\n", mode);
 
-    struct vgamode_s *vmode_g = vgahw_find_mode(mode);
+    struct vgamode_s *vmode_g = vgahw_find_mode(mode & ~MF_VBEFLAGS);
     if (! vmode_g) {
         dprintf(1, "VBE mode %x not found\n", mode);
         regs->ax = 0x014f;