aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-10 16:07:38 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-10 16:07:38 +0000
commitb29169d2654776e749de91d65c720003ab4a2e66 (patch)
treef0ad8e3371cf3dac85e8d608d0a45a9dbe3157e8 /sdl.c
parent Merge TCX and VGA pixel operations (diff)
downloadqemu-kvm-b29169d2654776e749de91d65c720003ab4a2e66.tar.gz
qemu-kvm-b29169d2654776e749de91d65c720003ab4a2e66.tar.bz2
qemu-kvm-b29169d2654776e749de91d65c720003ab4a2e66.zip
Attempt to fix incorrect colours on some BGR displays
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2974 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index dc11937cf..326935a78 100644
--- 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;