diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-09-03 13:54:28 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-09-03 13:54:28 -0400 |
commit | ef4f9e183751df5ccd32eb5dda2ce6816b53695f (patch) | |
tree | 249129c9574a748e74b1c091667d263baaa66be0 /vgasrc/vbe.c | |
parent | c8a3d3ee0194f0bb76e7ec8eeb59d7b986c24016 (diff) | |
download | seabios-ef4f9e183751df5ccd32eb5dda2ce6816b53695f.tar.gz |
vgabios: Ignore mode flags in vbe get_mode_info call.
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>
Diffstat (limited to 'vgasrc/vbe.c')
-rw-r--r-- | vgasrc/vbe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vgasrc/vbe.c b/vgasrc/vbe.c index 227a244a..01c80719 100644 --- a/vgasrc/vbe.c +++ b/vgasrc/vbe.c @@ -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; |