summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-06-12 08:24:03 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-06-12 08:24:03 +0000
commit4dea91fbcbcf76aa5176bbb1a0fe93bc7591119a (patch)
treebba2ccd7d4480ddd6d273034db96c7c3deea31f3 /firmware
parent3d762e9728c770e54dfeb5e81250282b51a59f61 (diff)
downloadrockbox-4dea91fbcbcf76aa5176bbb1a0fe93bc7591119a.tar.gz
rockbox-4dea91fbcbcf76aa5176bbb1a0fe93bc7591119a.zip
Tighter scrolling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@971 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c
index f4deb89456..837fd5734d 100644
--- a/firmware/drivers/lcd.c
+++ b/firmware/drivers/lcd.c
@@ -820,10 +820,11 @@ static void scroll_thread(void)
else
s->offset++;
- if (s->offset > s->textlen) {
+ if (s->offset >= s->textlen) {
+ lcd_puts(s->startx + s->textlen - s->offset, s->starty," ");
scroll_count = scroll_speed; /* prevent wrap */
s->offset=0;
- s->xpos = s->space;
+ s->xpos = s->space-1;
}
}
sleep(HZ/scroll_speed);