vgabios: Fix cirrus memory clear on mode switch.
commitb7b92935df0e309149c042d587e4764548f10608
authorKevin O'Connor <kevin@koconnor.net>
Sat, 9 Mar 2013 18:04:47 +0000 (9 13:04 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 9 Mar 2013 18:10:45 +0000 (9 13:10 -0500)
treea8bac68b2d9bc89d8a5d5c07ddc696e396f98855
parent9cba2b3d22db7da313dfec444eb6030459d239c4
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>
vgasrc/clext.c
vgasrc/vgabios.c
vgasrc/vgabios.h