1
0
Fork 0
forked from len0rd/rockbox

add a delay when continually scrolling and reaching the beginning of the line

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8114 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcoen Hirschberg 2005-11-30 14:48:24 +00:00
parent 36cca23c18
commit ad31ad4d1c
4 changed files with 20 additions and 12 deletions

View file

@ -765,9 +765,11 @@ static void scroll_thread(void)
}
}
else {
/* scroll forward the whole time */
if (s->offset >= s->width)
s->offset %= s->width;
/* pause at beginning of line */
if (s->offset >= s->width) {
s->offset = 0;
s->start_tick = current_tick + scroll_delay * 2;
}
}
lastmode = drawmode;