forked from len0rd/rockbox
(all targets) Increase scrolling line size to account for utf-8 in the overlap. (player) Fix utf-8-related scroll-around display bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12943 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
45581245de
commit
a4ef0c4897
2 changed files with 3 additions and 3 deletions
|
|
@ -520,7 +520,7 @@ void lcd_puts_scroll_offset(int x, int y, const unsigned char *string,
|
|||
}
|
||||
|
||||
end = strchr(s->line, '\0');
|
||||
strncpy(end, string, LCD_WIDTH);
|
||||
strncpy(end, string, utf8seek(s->line, LCD_WIDTH));
|
||||
|
||||
s->offset = offset;
|
||||
s->startx = xmargin + x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue