]> git.proxmox.com Git - mirror_qemu.git/blobdiff - sdl.c
bgr32 pixel format support
[mirror_qemu.git] / sdl.c
diff --git a/sdl.c b/sdl.c
index 72a70808db6ca6aabd40e119a47de8276b2cd2dd..ec4f93c5efb1d38f0b470b7c77224f1d5ba93dde 100644 (file)
--- a/sdl.c
+++ b/sdl.c
@@ -81,6 +81,11 @@ 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) {
+        ds->bgr = 1;
+    } else {
+        ds->bgr = 0;
+    }
     ds->width = w;
     ds->height = h;
 }