Skip to contentSkip to conversation

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

Qemu-devel Anthony Liguori 1 participant 1 message Jul 23, 2008

lore
Share & tools
lore
#0 lore raw

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.

Revision Links:
--------------

    http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=1

Modified Paths:
--------------
trunk/sdl.c

Modified: trunk/sdl.c
===================================================================

sdl.c +1 -1
@@ -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;