Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LlDuH-0002qv-RH for qemu-devel@nongnu.org; Sat, 21 Mar 2009 22:59:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LlDuF-0002qj-Cx for qemu-devel@nongnu.org; Sat, 21 Mar 2009 22:59:24 -0400 Received: from [199.232.76.173] (port=36247 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LlDuF-0002qg-7C for qemu-devel@nongnu.org; Sat, 21 Mar 2009 22:59:23 -0400 Received: from savannah.gnu.org ([199.232.41.3]:45383 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LlDuE-0002WQ-QL for qemu-devel@nongnu.org; Sat, 21 Mar 2009 22:59:22 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LlDuE-0001hV-5Z for qemu-devel@nongnu.org; Sun, 22 Mar 2009 02:59:22 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LlDuD-0001hQ-Sh for qemu-devel@nongnu.org; Sun, 22 Mar 2009 02:59:22 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Sun, 22 Mar 2009 02:59:21 +0000 Subject: [Qemu-devel] [6882] Fix VGA issue introduced by r6349 (malc) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6882 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6882 Author: aliguori Date: 2009-03-22 02:59:21 +0000 (Sun, 22 Mar 2009) Log Message: ----------- Fix VGA issue introduced by r6349 (malc) Thanks to Robert Riebisch for bisection Signed-off-by: Anthony Liguori Modified Paths: -------------- branches/stable_0_10/hw/vga.c Modified: branches/stable_0_10/hw/vga.c =================================================================== --- branches/stable_0_10/hw/vga.c 2009-03-21 23:04:14 UTC (rev 6881) +++ branches/stable_0_10/hw/vga.c 2009-03-22 02:59:21 UTC (rev 6882) @@ -1616,6 +1616,16 @@ 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 @@ 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 @@ full_update |= update_palette16(s); if (s->sr[0x01] & 8) { v = VGA_DRAW_LINE2D2; - disp_width <<= 1; } else { v = VGA_DRAW_LINE2; }