From d3079cd241329456462e5b9d1bce7ddcf658fe35 Mon Sep 17 00:00:00 2001 From: bellard Date: Wed, 10 May 2006 22:17:36 +0000 Subject: bgr32 pixel format support git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1912 c046a42c-6fe2-441c-8c8c-71466251a162 --- sdl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sdl.c') diff --git a/sdl.c b/sdl.c index 72a70808db..ec4f93c5ef 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; } -- cgit v1.2.3-55-g7522