aboutsummaryrefslogtreecommitdiff
path: root/vgasrc/vgabios.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-03-09 13:04:47 -0500
committerKevin O'Connor <kevin@koconnor.net>2013-03-09 13:10:45 -0500
commitb7b92935df0e309149c042d587e4764548f10608 (patch)
treea8bac68b2d9bc89d8a5d5c07ddc696e396f98855 /vgasrc/vgabios.c
parent9cba2b3d22db7da313dfec444eb6030459d239c4 (diff)
downloadseabios-hppa-b7b92935df0e309149c042d587e4764548f10608.zip
seabios-hppa-b7b92935df0e309149c042d587e4764548f10608.tar.gz
seabios-hppa-b7b92935df0e309149c042d587e4764548f10608.tar.bz2
vgabios: Fix cirrus memory clear on mode switch.
The cirrus_clear_vram() code wasn't actually doing anything because of a u8 overflow. Fix that. Fill with 0xff when performing a legacy cirrus mode switch (WinXP has been observed to incorrectly render dialog boxes if the memory is filled to 0). This was the behavior of the original LGPL vgabios code. To support this, add mechanism (MF_LEGACY) to allow vga drivers to detect if the mode switch is from vesa or int10. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgabios.c')
-rw-r--r--vgasrc/vgabios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c
index 6abe639..987a259 100644
--- a/vgasrc/vgabios.c
+++ b/vgasrc/vgabios.c
@@ -420,7 +420,7 @@ handle_1000(struct bregs *regs)
else
regs->al = 0x30;
- int flags = GET_BDA(modeset_ctl) & (MF_NOPALETTE|MF_GRAYSUM);
+ int flags = MF_LEGACY | (GET_BDA(modeset_ctl) & (MF_NOPALETTE|MF_GRAYSUM));
if (regs->al & 0x80)
flags |= MF_NOCLEARMEM;