qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 1/3] Fix SDL problems with BGR displays


From: Anthony Liguori
Subject: [Qemu-devel] [PATCH 1/3] Fix SDL problems with BGR displays
Date: Tue, 22 Jul 2008 15:51:41 -0500

From: Avi Kivity <address@hidden>

kvm: qemu: 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>

diff --git a/sdl.c b/sdl.c
index bac60ea..719e2bd 100644
--- a/sdl.c
+++ b/sdl.c
@@ -89,7 +89,7 @@ static void sdl_resize(DisplayState *ds, int w, int h)
     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]