qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/3] Fix SDL problems with BGR displays
@ 2008-07-22 20:51 Anthony Liguori
  2008-07-22 20:51 ` [Qemu-devel] [PATCH 2/3] Fix task register type after reset Anthony Liguori
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Anthony Liguori @ 2008-07-22 20:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori

From: Avi Kivity <avi@qumranet.com>

kvm: qemu: revert qemu's sdl.c rev 1.40

this fixes problems with bgr displays.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

diff --git a/sdl.c b/sdl.c
index bac60ea..719e2bd 100644
--- a/sdl.c
+++ b/sdl.c
@@ -89,7 +89,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 (screen->format->Bshift > screen->format->Rshift) {
+    if (ds->depth == 32 && screen->format->Rshift == 0) {
         ds->bgr = 1;
     } else {
         ds->bgr = 0;

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-07-23 15:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 20:51 [Qemu-devel] [PATCH 1/3] Fix SDL problems with BGR displays Anthony Liguori
2008-07-22 20:51 ` [Qemu-devel] [PATCH 2/3] Fix task register type after reset Anthony Liguori
2008-07-22 20:51 ` [Qemu-devel] [PATCH 3/3] Fix -daemonize option Anthony Liguori
2008-07-22 21:25 ` [Qemu-devel] [PATCH 1/3] Fix SDL problems with BGR displays Andreas Färber
2008-07-22 22:10   ` Anthony Liguori
2008-07-23  7:39     ` Blue Swirl
2008-07-23 13:21       ` Anthony Liguori
2008-07-23 15:19       ` Blue Swirl
2008-07-23 15:22         ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).