summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-22 02:59:21 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-22 02:59:21 +0000
commit30b15843b21dc7573772ced9c045937426e73a87 (patch)
tree7f9917aebf51acc06d42fd9871d96b78e189429f
parent04ffdd7f9448bd600ccfc1e1ed7363f37d444716 (diff)
downloadqemu-30b15843b21dc7573772ced9c045937426e73a87.tar.gz
Fix VGA issue introduced by r6349 (malc)
Thanks to Robert Riebisch for bisection Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/branches/stable_0_10@6882 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/vga.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/hw/vga.c b/hw/vga.c
index 044b339161..2a9f4d9de4 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -1616,6 +1616,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 ||
@@ -1661,7 +1671,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;
}
@@ -1670,7 +1679,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;
}