Commit bf9b48af99a75a1f7d76c8b3d92a82a0a41cb707
1 parent
0fe17f5e
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
Showing
1 changed file
with
2 additions
and
1 deletions
hw/musicpal.c
... | ... | @@ -831,7 +831,8 @@ static void lcd_refresh(void *opaque) |
831 | 831 | break; |
832 | 832 | LCD_REFRESH(8, rgb_to_pixel8) |
833 | 833 | LCD_REFRESH(16, rgb_to_pixel16) |
834 | - LCD_REFRESH(32, (is_surface_bgr(s->ds) ? rgb_to_pixel32bgr : rgb_to_pixel32)) | |
834 | + LCD_REFRESH(32, (is_surface_bgr(s->ds->surface) ? | |
835 | + rgb_to_pixel32bgr : rgb_to_pixel32)) | |
835 | 836 | default: |
836 | 837 | cpu_abort(cpu_single_env, "unsupported colour depth %i\n", |
837 | 838 | ds_get_bits_per_pixel(s->ds)); | ... | ... |