From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqQdc-000265-WF for qemu-devel@nongnu.org; Mon, 28 Apr 2008 06:31:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqQdY-00021n-OX for qemu-devel@nongnu.org; Mon, 28 Apr 2008 06:31:10 -0400 Received: from [199.232.76.173] (port=51781 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqQdX-00021H-9w for qemu-devel@nongnu.org; Mon, 28 Apr 2008 06:31:07 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JqQdW-0000uM-38 for qemu-devel@nongnu.org; Mon, 28 Apr 2008 06:31:06 -0400 Received: from samy by implementation.famille.thibault.fr with local (Exim 4.69) (envelope-from ) id 1JqQcY-0001YA-QX for qemu-devel@nongnu.org; Mon, 28 Apr 2008 12:30:07 +0200 Date: Mon, 28 Apr 2008 11:30:06 +0100 From: Samuel Thibault Message-ID: <20080428103006.GD4537@implementation.uk.xensource.com> References: <20080425180406.GG4279@implementation.uk.xensource.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080425180406.GG4279@implementation.uk.xensource.com> Subject: [Qemu-devel] Re: VGA 2bit mode 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 Answering to myself: Samuel Thibault, le Fri 25 Apr 2008 19:04:06 +0100, a écrit : > I don't have a VGA book right here to check, but I don't understand > vga_draw_line2_: > > d += BPP * 8; > s += 4; > > i.e. 4 bytes for 8 pixels and vga_draw_line4_: > > d += BPP * 8; > s += 4; > > i.e. 4 bytes for 8 pixels too. Does VGA 2bit mode voluntarily waste > memory? Looks like it does, yes. Samuel