summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZakk Roberts <midk@rockbox.org>2006-05-29 10:46:41 +0000
committerZakk Roberts <midk@rockbox.org>2006-05-29 10:46:41 +0000
commit70a33127db8f0fa15fe8229641f50ea0c6cf8719 (patch)
tree5a6fa69df7a37c903f49c0bed9fc8c685f4bbc76
parente6f12e987d06c8c9673fc79d126de373fff7835e (diff)
downloadrockbox-70a33127db8f0fa15fe8229641f50ea0c6cf8719.tar.gz
rockbox-70a33127db8f0fa15fe8229641f50ea0c6cf8719.tar.bz2
rockbox-70a33127db8f0fa15fe8229641f50ea0c6cf8719.zip
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
-rw-r--r--apps/plugins/credits.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/credits.c b/apps/plugins/credits.c
index 52c0394367..060b0bbd49 100644
--- a/apps/plugins/credits.c
+++ b/apps/plugins/credits.c
@@ -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;