From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLeKZ-0002rp-UZ for qemu-devel@nongnu.org; Wed, 23 Jul 2008 09:24:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLeKZ-0002rb-8m for qemu-devel@nongnu.org; Wed, 23 Jul 2008 09:24:35 -0400 Received: from [199.232.76.173] (port=50592 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLeKZ-0002rY-3M for qemu-devel@nongnu.org; Wed, 23 Jul 2008 09:24:35 -0400 Received: from savannah.gnu.org ([199.232.41.3]:60240 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 1KLeKY-00068b-Jq for qemu-devel@nongnu.org; Wed, 23 Jul 2008 09:24:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KLeKY-0002vV-55 for qemu-devel@nongnu.org; Wed, 23 Jul 2008 13:24:34 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KLeKX-0002vM-Rr for qemu-devel@nongnu.org; Wed, 23 Jul 2008 13:24:34 +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: Wed, 23 Jul 2008 13:24:33 +0000 Subject: [Qemu-devel] [4925] Fix SDL problems with BGR displays (Avi Kivity) 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: 4925 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4925 Author: aliguori Date: 2008-07-23 13:24:33 +0000 (Wed, 23 Jul 2008) Log Message: ----------- Fix SDL problems with BGR displays (Avi Kivity) revert qemu's sdl.c rev 1.40 this fixes problems with bgr displays. Signed-off-by: Avi Kivity Signed-off-by: Anthony Liguori Revision Links: -------------- http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=1 Modified Paths: -------------- trunk/sdl.c Modified: trunk/sdl.c =================================================================== --- trunk/sdl.c 2008-07-23 00:58:33 UTC (rev 4924) +++ trunk/sdl.c 2008-07-23 13:24:33 UTC (rev 4925) @@ -89,7 +89,7 @@ ds->data = screen->pixels; ds->linesize = screen->pitch; ds->depth = screen->format->BitsPerPixel; - if (screen->format->Bshift > screen->format->Rshift) { + if (ds->depth == 32 && screen->format->Rshift == 0) { ds->bgr = 1; } else { ds->bgr = 0;