diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-28 17:28:53 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-03-28 17:28:53 +0000 |
commit | bf9b48af99a75a1f7d76c8b3d92a82a0a41cb707 (patch) | |
tree | f44e8c8e1e2c1c88fd4733cff72a0aac78c460aa /hw | |
parent | 0fe17f5efb2f60393efb9ad9038aae4d056111ff (diff) |
musicpal: Fix regression caused by 6839 (Jan Kiszka)
Pass correct DisplayState field to is_surface_bgr().
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6898 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r-- | hw/musicpal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/musicpal.c b/hw/musicpal.c index abd3afa9eb..8eb13160aa 100644 --- a/hw/musicpal.c +++ b/hw/musicpal.c @@ -831,7 +831,8 @@ static void lcd_refresh(void *opaque) 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)); |