summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Salfischberger <tomas@rockbox.org>2005-07-06 19:33:46 +0000
committerTomas Salfischberger <tomas@rockbox.org>2005-07-06 19:33:46 +0000
commitd3424f0f51f564c6408b7d27fe3bc89fbfaba87d (patch)
tree6279ba532339d0f91583ec3dea7a74a17a7392e0
parent6b582c3b922593cf68af19e5518cb6e74f95b430 (diff)
downloadrockbox-d3424f0f51f564c6408b7d27fe3bc89fbfaba87d.tar.gz
rockbox-d3424f0f51f564c6408b7d27fe3bc89fbfaba87d.zip
Fixed the "overwriting bug" with aligned lines in the WPS.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7042 a1c6a512-1295-4272-9138-f99709370657
-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 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);