summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-08-15 06:35:29 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-08-15 06:35:29 +0000
commit46b3b86a50d7cd9c21f59d1f4dab4e77c8332995 (patch)
treef1b6689c159372c58b2b935c0dfde3ff630ab2d8 /apps
parent073f83ada3f4b92acb297317a590dc08b5a291d9 (diff)
downloadrockbox-46b3b86a50d7cd9c21f59d1f4dab4e77c8332995.zip
rockbox-46b3b86a50d7cd9c21f59d1f4dab4e77c8332995.tar.gz
rockbox-46b3b86a50d7cd9c21f59d1f4dab4e77c8332995.tar.bz2
rockbox-46b3b86a50d7cd9c21f59d1f4dab4e77c8332995.tar.xz
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
Diffstat (limited to 'apps')
-rw-r--r--apps/wps-display.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index 8ba26e5..11a2506 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -1142,6 +1142,10 @@ bool wps_refresh(struct mp3entry* id3,
lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
lcd_fillrect(0, ypos, LCD_WIDTH, strh);
lcd_set_drawmode(DRMODE_SOLID);
+
+ /* Nasty hack: we output an empty scrolling string,
+ which will reset the scroller for that line */
+ lcd_puts_scroll(0, i, "");
if (flags & WPS_ALIGN_CENTER)
{
@@ -1179,6 +1183,10 @@ bool wps_refresh(struct mp3entry* id3,
lcd_fillrect(0, ypos, LCD_WIDTH, strh);
lcd_set_drawmode(DRMODE_SOLID);
+ /* Nasty hack: we output an empty scrolling string,
+ which will reset the scroller for that line */
+ lcd_puts_scroll(0, i, "");
+
if (flags & WPS_ALIGN_CENTER) {
xpos = (LCD_WIDTH - strw) / 2;
lcd_putsxy(xpos, ypos, buf);