From 46b3b86a50d7cd9c21f59d1f4dab4e77c8332995 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 15 Aug 2005 06:35:29 +0000 Subject: 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 --- apps/wps-display.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- cgit v1.1