mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06:00
mode X double scan fix (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@364 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
76bc683820
commit
9da8ba18e6
1 changed files with 4 additions and 2 deletions
4
hw/vga.c
4
hw/vga.c
|
@ -1124,6 +1124,9 @@ static void vga_draw_graphic(VGAState *s, int full_update)
|
||||||
disp_width = width;
|
disp_width = width;
|
||||||
|
|
||||||
shift_control = (s->gr[0x05] >> 5) & 3;
|
shift_control = (s->gr[0x05] >> 5) & 3;
|
||||||
|
if (shift_control > 1)
|
||||||
|
double_scan = ((s->cr[0x09] & 0x1f) != 0);
|
||||||
|
else
|
||||||
double_scan = (s->cr[0x09] & 0x80);
|
double_scan = (s->cr[0x09] & 0x80);
|
||||||
if (shift_control != s->shift_control ||
|
if (shift_control != s->shift_control ||
|
||||||
double_scan != s->double_scan) {
|
double_scan != s->double_scan) {
|
||||||
|
@ -1151,7 +1154,6 @@ static void vga_draw_graphic(VGAState *s, int full_update)
|
||||||
} else {
|
} else {
|
||||||
full_update |= update_palette256(s);
|
full_update |= update_palette256(s);
|
||||||
v = VGA_DRAW_LINE8D2;
|
v = VGA_DRAW_LINE8D2;
|
||||||
double_scan = 1; /* XXX: explain me why it is always activated */
|
|
||||||
}
|
}
|
||||||
vga_draw_line = vga_draw_line_table[v * 4 + get_depth_index(s->ds->depth)];
|
vga_draw_line = vga_draw_line_table[v * 4 + get_depth_index(s->ds->depth)];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue