forked from len0rd/rockbox
Scroll works for wps and menus. Still much cleanup to do.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2704 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fcf08a1ce6
commit
c4a09adf29
1 changed files with 3 additions and 3 deletions
|
@ -583,7 +583,7 @@ void lcd_puts_scroll(int x, int y, unsigned char* string )
|
|||
lcd_puts(x,y,string);
|
||||
lcd_getstringsize(string, &w, &h);
|
||||
|
||||
if (LCD_WIDTH - x*8 - xmargin < w)
|
||||
if ((LCD_WIDTH - x*6 - xmargin) < w)
|
||||
{
|
||||
/* prepare scroll line */
|
||||
char *end;
|
||||
|
@ -662,7 +662,7 @@ static void scroll_thread(void)
|
|||
s->offset %= s->width;
|
||||
|
||||
lcd_getstringsize(s->line, &w, &h);
|
||||
xpos = xmargin + (s->startx-1) * w / s->len;
|
||||
xpos = xmargin + s->startx * s->width / s->len;
|
||||
ypos = ymargin + s->starty * h;
|
||||
|
||||
lcd_clearrect(xpos, ypos, LCD_WIDTH - xmargin, h);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue