diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-15 06:35:29 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-15 06:35:29 +0000 |
commit | 46b3b86a50d7cd9c21f59d1f4dab4e77c8332995 (patch) | |
tree | f1b6689c159372c58b2b935c0dfde3ff630ab2d8 | |
parent | 073f83ada3f4b92acb297317a590dc08b5a291d9 (diff) | |
download | rockbox-46b3b86a50d7cd9c21f59d1f4dab4e77c8332995.tar.gz rockbox-46b3b86a50d7cd9c21f59d1f4dab4e77c8332995.zip |
Fixed the problem where a scrolling subline could keep scrolling with old information when displaying an alternate non-scrolling subline (say that quickly ten times)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7329 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/wps-display.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index 8ba26e5614..11a2506611 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c | |||
@@ -1142,6 +1142,10 @@ bool wps_refresh(struct mp3entry* id3, | |||
1142 | lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); | 1142 | lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); |
1143 | lcd_fillrect(0, ypos, LCD_WIDTH, strh); | 1143 | lcd_fillrect(0, ypos, LCD_WIDTH, strh); |
1144 | lcd_set_drawmode(DRMODE_SOLID); | 1144 | lcd_set_drawmode(DRMODE_SOLID); |
1145 | |||
1146 | /* Nasty hack: we output an empty scrolling string, | ||
1147 | which will reset the scroller for that line */ | ||
1148 | lcd_puts_scroll(0, i, ""); | ||
1145 | 1149 | ||
1146 | if (flags & WPS_ALIGN_CENTER) | 1150 | if (flags & WPS_ALIGN_CENTER) |
1147 | { | 1151 | { |
@@ -1179,6 +1183,10 @@ bool wps_refresh(struct mp3entry* id3, | |||
1179 | lcd_fillrect(0, ypos, LCD_WIDTH, strh); | 1183 | lcd_fillrect(0, ypos, LCD_WIDTH, strh); |
1180 | lcd_set_drawmode(DRMODE_SOLID); | 1184 | lcd_set_drawmode(DRMODE_SOLID); |
1181 | 1185 | ||
1186 | /* Nasty hack: we output an empty scrolling string, | ||
1187 | which will reset the scroller for that line */ | ||
1188 | lcd_puts_scroll(0, i, ""); | ||
1189 | |||
1182 | if (flags & WPS_ALIGN_CENTER) { | 1190 | if (flags & WPS_ALIGN_CENTER) { |
1183 | xpos = (LCD_WIDTH - strw) / 2; | 1191 | xpos = (LCD_WIDTH - strw) / 2; |
1184 | lcd_putsxy(xpos, ypos, buf); | 1192 | lcd_putsxy(xpos, ypos, buf); |