summaryrefslogtreecommitdiffstats
path: root/apps/plugins/credits.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/credits.c')
-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;