diff options
author | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-17 16:05:50 +0000 |
---|---|---|
committer | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-17 16:05:50 +0000 |
commit | aba35a6cd1c70f8cb4b9a08d6685eafe76725cee (patch) | |
tree | 5b5daa942365f52d17e9e57ce76bb5b4fb76c604 /hw/vga.c | |
parent | cbbccffc7acebb3256f58b232b4f9d819f9596ec (diff) |
Fix VGA issue introduced by r6349
Thanks to Robert Riebisch for bisection
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6858 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/vga.c')
-rw-r--r-- | hw/vga.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1619,6 +1619,16 @@ static void vga_draw_graphic(VGAState *s, int full_update) s->double_scan = double_scan; } + if (shift_control == 0) { + if (s->sr[0x01] & 8) { + disp_width <<= 1; + } + } else if (shift_control == 1) { + if (s->sr[0x01] & 8) { + disp_width <<= 1; + } + } + depth = s->get_bpp(s); if (s->line_offset != s->last_line_offset || disp_width != s->last_width || @@ -1660,7 +1670,6 @@ static void vga_draw_graphic(VGAState *s, int full_update) full_update |= update_palette16(s); if (s->sr[0x01] & 8) { v = VGA_DRAW_LINE4D2; - disp_width <<= 1; } else { v = VGA_DRAW_LINE4; } @@ -1669,7 +1678,6 @@ static void vga_draw_graphic(VGAState *s, int full_update) full_update |= update_palette16(s); if (s->sr[0x01] & 8) { v = VGA_DRAW_LINE2D2; - disp_width <<= 1; } else { v = VGA_DRAW_LINE2; } |