[6898] musicpal: Fix regression caused by 6839 (Jan Kiszka)
Revision: 6898
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6898 Author: aliguori Date: 2009-03-28 17:28:53 +0000 (Sat, 28 Mar 2009)
Log Message:
-----------
musicpal: Fix regression caused by 6839 (Jan Kiszka)
Pass correct DisplayState field to is_surface_bgr().
Signed-off-by Jan Kiszka <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/hw/musicpal.c
Modified: trunk/hw/musicpal.c
===================================================================
hw/musicpal.c +2 -1
@@ -831,7 +831,8 @@break ; LCD_REFRESH(8, rgb_to_pixel8) LCD_REFRESH(16, rgb_to_pixel16) - LCD_REFRESH(32, (is_surface_bgr(s->ds) ? rgb_to_pixel32bgr : rgb_to_pixel32)) +LCD_REFRESH (32 , (is_surface_bgr (s->ds->surface) ? + rgb_to_pixel32bgr : rgb_to_pixel32))default :cpu_abort (cpu_single_env,"unsupported colour depth %i\n" ,ds_get_bits_per_pixel (s->ds));