summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/wps-display.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index ab62a91..8c6de43 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -1138,6 +1138,11 @@ bool wps_refresh(struct mp3entry* id3,
if (strw>LCD_WIDTH) {
lcd_puts_scroll(0, i, buf);
} else {
+ /* clear the line first */
+ lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
+ lcd_fillrect(0, ypos, LCD_WIDTH, strh);
+ lcd_set_drawmode(DRMODE_SOLID);
+
if (flags & WPS_ALIGN_CENTER)
{
xpos = (LCD_WIDTH - strw) / 2;
@@ -1168,6 +1173,12 @@ bool wps_refresh(struct mp3entry* id3,
lcd_getstringsize(buf, &strw, &strh);
ypos = (i*strh)+lcd_getymargin();
update_line = true;
+
+ /* clear the line first */
+ lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
+ lcd_fillrect(0, ypos, LCD_WIDTH, strh);
+ lcd_set_drawmode(DRMODE_SOLID);
+
if (flags & WPS_ALIGN_CENTER) {
xpos = (LCD_WIDTH - strw) / 2;
lcd_putsxy(xpos, ypos, buf);