forked from len0rd/rockbox
Tighter scrolling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@971 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3d762e9728
commit
4dea91fbcb
1 changed files with 3 additions and 2 deletions
|
|
@ -820,10 +820,11 @@ static void scroll_thread(void)
|
||||||
else
|
else
|
||||||
s->offset++;
|
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 */
|
scroll_count = scroll_speed; /* prevent wrap */
|
||||||
s->offset=0;
|
s->offset=0;
|
||||||
s->xpos = s->space;
|
s->xpos = s->space-1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sleep(HZ/scroll_speed);
|
sleep(HZ/scroll_speed);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue