From acf14e05693125d3768de80d99d7cfff6c2b164a Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 2 Sep 2005 13:37:33 +0000 Subject: The WPS didn't update the bitmaps when it was supposed to git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7455 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps-display.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/wps-display.c b/apps/wps-display.c index d43c47b5c2..9cb9e9601f 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c @@ -127,6 +127,7 @@ static void wps_display_images(void) { for (n = 0; n < MAX_IMAGES; n++) { if (img[n].loaded && img[n].display) { lcd_mono_bitmap(img[n].ptr, img[n].x, img[n].y, img[n].w, img[n].h); + lcd_update_rect(img[n].x, img[n].y, img[n].w, img[n].h); } } lcd_set_drawmode(DRMODE_SOLID); @@ -948,7 +949,7 @@ static void format_display(char* buf, int n; /* Set images to not to be displayed */ for (n = 0; n < MAX_IMAGES; n++) { - img[n].display = img[n].always_display?true:false; + img[n].display = false; } #endif @@ -1498,12 +1499,19 @@ bool wps_refresh(struct mp3entry* id3, } #ifdef HAVE_LCD_BITMAP if (update_line) { - wps_display_images(); lcd_update_rect(0, i*h + offset, LCD_WIDTH, h); + wps_display_images(); } #endif } + #ifdef HAVE_LCD_BITMAP + /* Display images marked as "always display" */ + for (i = 0; i < MAX_IMAGES; i++) { + img[i].display = img[i].always_display; + } + wps_display_images(); + /* Now we know wether the peak meter is used. So we can enable / disable the peak meter thread */ peak_meter_enabled = enable_pm; -- cgit v1.2.3