Minor optimisation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6450 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a462b0caa3
commit
f3230af58d
1 changed files with 2 additions and 2 deletions
|
@ -60,15 +60,15 @@ void roll_credits(void)
|
|||
|
||||
if (++name >= numnames)
|
||||
break;
|
||||
line ^= 1;
|
||||
|
||||
x2 = x + len/2;
|
||||
if ((unsigned)x2 < 11)
|
||||
lcd_puts(x2, line ^ 1, "*");
|
||||
lcd_putc(x2, line, '*');
|
||||
|
||||
new_len = strlen(credits[name]);
|
||||
x += MAX(len/2 + 2, len - new_len/2 + 1);
|
||||
len = new_len;
|
||||
line ^= 1;
|
||||
}
|
||||
/* abort on keypress */
|
||||
if (button_get_w_tmo(HZ/8) & BUTTON_REL)
|
||||
|
|
Loading…
Reference in a new issue