summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {
127 for (n = 0; n < MAX_IMAGES; n++) { 127 for (n = 0; n < MAX_IMAGES; n++) {
128 if (img[n].loaded && img[n].display) { 128 if (img[n].loaded && img[n].display) {
129 lcd_mono_bitmap(img[n].ptr, img[n].x, img[n].y, img[n].w, img[n].h); 129 lcd_mono_bitmap(img[n].ptr, img[n].x, img[n].y, img[n].w, img[n].h);
130 lcd_update_rect(img[n].x, img[n].y, img[n].w, img[n].h);
130 } 131 }
131 } 132 }
132 lcd_set_drawmode(DRMODE_SOLID); 133 lcd_set_drawmode(DRMODE_SOLID);
@@ -948,7 +949,7 @@ static void format_display(char* buf,
948 int n; 949 int n;
949 /* Set images to not to be displayed */ 950 /* Set images to not to be displayed */
950 for (n = 0; n < MAX_IMAGES; n++) { 951 for (n = 0; n < MAX_IMAGES; n++) {
951 img[n].display = img[n].always_display?true:false; 952 img[n].display = false;
952 } 953 }
953#endif 954#endif
954 955
@@ -1498,12 +1499,19 @@ bool wps_refresh(struct mp3entry* id3,
1498 } 1499 }
1499#ifdef HAVE_LCD_BITMAP 1500#ifdef HAVE_LCD_BITMAP
1500 if (update_line) { 1501 if (update_line) {
1501 wps_display_images();
1502 lcd_update_rect(0, i*h + offset, LCD_WIDTH, h); 1502 lcd_update_rect(0, i*h + offset, LCD_WIDTH, h);
1503 wps_display_images();
1503 } 1504 }
1504#endif 1505#endif
1505 } 1506 }
1507
1506#ifdef HAVE_LCD_BITMAP 1508#ifdef HAVE_LCD_BITMAP
1509 /* Display images marked as "always display" */
1510 for (i = 0; i < MAX_IMAGES; i++) {
1511 img[i].display = img[i].always_display;
1512 }
1513 wps_display_images();
1514
1507 /* Now we know wether the peak meter is used. 1515 /* Now we know wether the peak meter is used.
1508 So we can enable / disable the peak meter thread */ 1516 So we can enable / disable the peak meter thread */
1509 peak_meter_enabled = enable_pm; 1517 peak_meter_enabled = enable_pm;