qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [4925] Fix SDL problems with BGR displays (Avi Kivity)


From: Anthony Liguori
Subject: [Qemu-devel] [4925] Fix SDL problems with BGR displays (Avi Kivity)
Date: Wed, 23 Jul 2008 13:24:33 +0000

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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

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;






reply via email to

[Prev in Thread] Current Thread [Next in Thread]