summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-09-02 13:37:33 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-09-02 13:37:33 +0000
commitacf14e05693125d3768de80d99d7cfff6c2b164a (patch)
tree3fed6569b7db69f6b8befcf24d5df9312cf4d437 /apps
parentb3050e90459849cacfbad6f3109d884cee9bbcaf (diff)
downloadrockbox-acf14e05693125d3768de80d99d7cfff6c2b164a.tar.gz
rockbox-acf14e05693125d3768de80d99d7cfff6c2b164a.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/wps-display.c12
1 files 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;