[4925] Fix SDL problems with BGR displays (Avi Kivity)
Revision: 4925
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4925 Author: aliguori Date: 2008-07-23 13:24:33 +0000 (Wed, 23 Jul 2008)
Log Message:
-----------
Fix SDL problems with BGR displays (Avi Kivity)
revert qemu's sdl.c rev 1.40
this fixes problems with bgr displays.
Signed-off-by Avi Kivity <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Revision Links:
--------------
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=1
Modified Paths:
--------------
trunk/sdl.c
Modified: trunk/sdl.c
===================================================================
sdl.c +1 -1
@@ -89,7 +89,7 @@ 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 ;