From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FSzWr-0007Vv-3r for qemu-devel@nongnu.org; Mon, 10 Apr 2006 12:46:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FSzWp-0007Us-L8 for qemu-devel@nongnu.org; Mon, 10 Apr 2006 12:46:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FSzWp-0007Uo-HI for qemu-devel@nongnu.org; Mon, 10 Apr 2006 12:46:15 -0400 Received: from [65.74.133.6] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FSzbV-0001xS-9D for qemu-devel@nongnu.org; Mon, 10 Apr 2006 12:51:05 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Updated BGR vs. RGB vga patch... Date: Mon, 10 Apr 2006 17:46:11 +0100 References: <443A86FC.9010302@win4lin.com> <200604101735.39032.paul@codesourcery.com> <443A8ABB.9010409@win4lin.com> In-Reply-To: <443A8ABB.9010409@win4lin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604101746.12090.paul@codesourcery.com> 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 > Unfortunately X11 will not allow you to force a certain color order in > 24-bit mode. You can tell it to force byte-order but this only affects > 16-bit blits - it's ignored for 24-bit since the individual components > of the 24-bit blits, even if packed into 32-bits, are still 8-bits long. > That's what the color masks are for. There is no efficient way to do > this at the server level that I can see. If you find a better way > (within the current scope of the VGA architecture), I'd be glad to try > to implement it. I was just sharing something that was useful to me. It should be possible to select between different 24-bit packings the same way different bit depths are handled. Paul