]> git.proxmox.com Git - mirror_qemu.git/blobdiff - sdl.c
Attempt to fix incorrect colours on some BGR displays
[mirror_qemu.git] / sdl.c
diff --git a/sdl.c b/sdl.c
index dc11937cf2b453244fdd8e825a8deffdd3d951ab..326935a78fb7cc484f894903b07ad269cff17b0f 100644 (file)
--- a/sdl.c
+++ b/sdl.c
@@ -87,7 +87,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 (ds->depth == 32 && screen->format->Rshift == 0) {
+    if (screen->format->Bshift > screen->format->Rshift) {
         ds->bgr = 1;
     } else {
         ds->bgr = 0;