summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-03-31 07:08:40 +0000
committerJens Arnold <amiconn@rockbox.org>2007-03-31 07:08:40 +0000
commita122d24b2b1892e92b76d8a46e888c011e6d2510 (patch)
tree1a70b69ff00f23550baaebeaed51eefda3e5d91a
parentce35f76a53f89216a3bbcb6c8049885c66bfbcce (diff)
downloadrockbox-a122d24b2b1892e92b76d8a46e888c011e6d2510.tar.gz
rockbox-a122d24b2b1892e92b76d8a46e888c011e6d2510.zip
Player: Fixed bug where strings which are only a bit too long wouldn't scroll.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12977 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/lcd-charcell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-charcell.c b/firmware/drivers/lcd-charcell.c
index 9d42ab5b4b..76f7cf1b1e 100644
--- a/firmware/drivers/lcd-charcell.c
+++ b/firmware/drivers/lcd-charcell.c
@@ -492,7 +492,7 @@ void lcd_puts_scroll_offset(int x, int y, const unsigned char *string,
lcd_puts_offset(x, y, string, offset);
len = utf8length(string);
- if (LCD_WIDTH - xmargin < len)
+ if (LCD_WIDTH - x - xmargin < len)
{
/* prepare scroll line */
char *end;