]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commitdiff
merge from in qemu upstream: "Attempt to fix incorrect colours on some BGR displays...
authorIan Jackson <iwj@mariner.uk.xensource.com>
Tue, 6 May 2008 11:13:58 +0000 (12:13 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 12 May 2008 11:20:11 +0000 (12:20 +0100)
sdl.c

diff --git a/sdl.c b/sdl.c
index 8fe968fa36d1b01c7a1b64b56fa6ba5b9ce40d94..2911c9be518bb44585f853748bf29765a47de945 100644 (file)
--- a/sdl.c
+++ b/sdl.c
@@ -245,7 +245,7 @@ static void sdl_resize(DisplayState *ds, int w, int h, int linesize)
     ds->height = h;
     if (!ds->shared_buf) {
         ds->depth = screen->format->BitsPerPixel;
-        if (ds->depth == 32 && screen->format->Rshift == 0) {
+       if (screen->format->Bshift > screen->format->Rshift) {
             ds->bgr = 1;
         } else {
             ds->bgr = 0;