Fix Player builds and extend the delay between the last name appearing and the plugin exiting from 1 second to 2.5 seconds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10013 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e6f12e987d
commit
70a33127db
1 changed files with 5 additions and 5 deletions
|
@ -63,7 +63,7 @@ void roll_credits(void)
|
|||
{
|
||||
int numnames = sizeof(credits)/sizeof(char*);
|
||||
int curr_name = 0;
|
||||
int curr_len = utf8length(credits[0]);
|
||||
int curr_len = rb->utf8length(credits[0]);
|
||||
int curr_index = 0;
|
||||
int curr_line = 0;
|
||||
int name, len, new_len, line, x;
|
||||
|
@ -82,7 +82,7 @@ void roll_credits(void)
|
|||
int x2;
|
||||
|
||||
if (x < 0)
|
||||
rb->lcd_puts(0, line, credits[name] + utf8seek(credits[name], -x));
|
||||
rb->lcd_puts(0, line, credits[name] + rb->utf8seek(credits[name], -x));
|
||||
else
|
||||
rb->lcd_puts(x, line, credits[name]);
|
||||
|
||||
|
@ -95,7 +95,7 @@ void roll_credits(void)
|
|||
if ((unsigned)x2 < 11)
|
||||
rb->lcd_putc(x2, line, '*');
|
||||
|
||||
new_len = utf8length(credits[name]);
|
||||
new_len = rb->utf8length(credits[name]);
|
||||
x += MAX(len/2 + 2, len - new_len/2 + 1);
|
||||
len = new_len;
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ void roll_credits(void)
|
|||
{
|
||||
if (++curr_name >= numnames)
|
||||
break;
|
||||
new_len = utf8length(credits[curr_name]);
|
||||
new_len = rb->utf8length(credits[curr_name]);
|
||||
curr_index -= MAX(curr_len/2 + 2, curr_len - new_len/2 + 1);
|
||||
curr_len = new_len;
|
||||
curr_line ^= 1;
|
||||
|
@ -266,7 +266,7 @@ void roll_credits(void)
|
|||
return;
|
||||
}
|
||||
|
||||
btn = rb->button_get_w_tmo(HZ); /* exit on keypress */
|
||||
btn = rb->button_get_w_tmo(HZ*2.5); /* exit on keypress */
|
||||
if (btn != BUTTON_NONE && !(btn & BUTTON_REL))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue