forked from len0rd/rockbox
Bugfix2 of the bidirectional scroll. Sorry...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3067 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ac984edda6
commit
b113073170
1 changed files with 1 additions and 1 deletions
|
|
@ -464,7 +464,7 @@ void lcd_puts_scroll(int x, int y, unsigned char* string )
|
|||
strncpy(s->text,string,sizeof s->text);
|
||||
s->turn_offset=-1;
|
||||
if (allow_bidirectional_scrolling && s->textlen + x > 11+4) {
|
||||
s->turn_offset=s->textlen-x-11;
|
||||
s->turn_offset=s->textlen+x-11;
|
||||
} else {
|
||||
for (i=0; i<scroll_spacing && s->textlen<(int)sizeof(s->text); i++) {
|
||||
s->text[s->textlen++]=' ';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue