diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/wps-display.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index ab62a91d9e..8c6de43a20 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c | |||
@@ -1138,6 +1138,11 @@ bool wps_refresh(struct mp3entry* id3, | |||
1138 | if (strw>LCD_WIDTH) { | 1138 | if (strw>LCD_WIDTH) { |
1139 | lcd_puts_scroll(0, i, buf); | 1139 | lcd_puts_scroll(0, i, buf); |
1140 | } else { | 1140 | } else { |
1141 | /* clear the line first */ | ||
1142 | lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); | ||
1143 | lcd_fillrect(0, ypos, LCD_WIDTH, strh); | ||
1144 | lcd_set_drawmode(DRMODE_SOLID); | ||
1145 | |||
1141 | if (flags & WPS_ALIGN_CENTER) | 1146 | if (flags & WPS_ALIGN_CENTER) |
1142 | { | 1147 | { |
1143 | xpos = (LCD_WIDTH - strw) / 2; | 1148 | xpos = (LCD_WIDTH - strw) / 2; |
@@ -1168,6 +1173,12 @@ bool wps_refresh(struct mp3entry* id3, | |||
1168 | lcd_getstringsize(buf, &strw, &strh); | 1173 | lcd_getstringsize(buf, &strw, &strh); |
1169 | ypos = (i*strh)+lcd_getymargin(); | 1174 | ypos = (i*strh)+lcd_getymargin(); |
1170 | update_line = true; | 1175 | update_line = true; |
1176 | |||
1177 | /* clear the line first */ | ||
1178 | lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); | ||
1179 | lcd_fillrect(0, ypos, LCD_WIDTH, strh); | ||
1180 | lcd_set_drawmode(DRMODE_SOLID); | ||
1181 | |||
1171 | if (flags & WPS_ALIGN_CENTER) { | 1182 | if (flags & WPS_ALIGN_CENTER) { |
1172 | xpos = (LCD_WIDTH - strw) / 2; | 1183 | xpos = (LCD_WIDTH - strw) / 2; |
1173 | lcd_putsxy(xpos, ypos, buf); | 1184 | lcd_putsxy(xpos, ypos, buf); |