summaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-10 22:17:36 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-05-10 22:17:36 +0000
commitd3079cd241329456462e5b9d1bce7ddcf658fe35 (patch)
tree59350e2b46dc54bdcee26bedf6f1146f3aa5c1cd /sdl.c
parent38f3e7c2f526fb70d7bc52ed62910fea506dc84f (diff)
bgr32 pixel format support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1912 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sdl.c b/sdl.c
index 72a70808d..ec4f93c5e 100644
--- 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;
}