All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [4925] Fix SDL problems with BGR displays (Avi Kivity)
@ 2008-07-23 13:24 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-07-23 13:24 UTC (permalink / raw)
  To: qemu-devel

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 <avi@qumranet.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-23 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-23 13:24 [Qemu-devel] [4925] Fix SDL problems with BGR displays (Avi Kivity) Anthony Liguori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.