1
0
Fork 0
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:
Kjell Ericson 2003-01-10 14:48:53 +00:00
parent ac984edda6
commit b113073170

View file

@ -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++]=' ';