summaryrefslogtreecommitdiff
path: root/apps/plugins/credits.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/credits.c')
-rw-r--r--apps/plugins/credits.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/apps/plugins/credits.c b/apps/plugins/credits.c
index 6e993b5468..593b54277e 100644
--- a/apps/plugins/credits.c
+++ b/apps/plugins/credits.c
@@ -27,69 +27,6 @@ static const char* const credits[] = {
27#include "credits.raw" /* generated list of names from docs/CREDITS */ 27#include "credits.raw" /* generated list of names from docs/CREDITS */
28}; 28};
29 29
30#ifdef HAVE_LCD_CHARCELLS
31
32static void roll_credits(void)
33{
34 int numnames = sizeof(credits)/sizeof(char*);
35 int curr_name = 0;
36 int curr_len = rb->utf8length(credits[0]);
37 int curr_index = 0;
38 int curr_line = 0;
39 int name, len, new_len, line, x;
40
41 while (1)
42 {
43 rb->lcd_clear_display();
44
45 name = curr_name;
46 x = -curr_index;
47 len = curr_len;
48 line = curr_line;
49
50 while (x < 11)
51 {
52 int x2;
53
54 if (x < 0)
55 rb->lcd_puts(0, line,
56 credits[name] + rb->utf8seek(credits[name], -x));
57 else
58 rb->lcd_puts(x, line, credits[name]);
59
60 if (++name >= numnames)
61 break;
62
63 line ^= 1;
64
65 x2 = x + len/2;
66 if ((unsigned)x2 < 11)
67 rb->lcd_putc(x2, line, '*');
68
69 new_len = rb->utf8length(credits[name]);
70 x += MAX(len/2 + 2, len - new_len/2 + 1);
71 len = new_len;
72 }
73 rb->lcd_update();
74
75 /* abort on keypress */
76 if(rb->action_userabort(HZ/8))
77 return;
78
79 if (++curr_index >= curr_len)
80 {
81 if (++curr_name >= numnames)
82 break;
83 new_len = rb->utf8length(credits[curr_name]);
84 curr_index -= MAX(curr_len/2 + 2, curr_len - new_len/2 + 1);
85 curr_len = new_len;
86 curr_line ^= 1;
87 }
88 }
89}
90
91#else
92
93static bool stop_autoscroll(int action) 30static bool stop_autoscroll(int action)
94{ 31{
95 switch (action) 32 switch (action)
@@ -362,8 +299,6 @@ static void roll_credits(void)
362 } 299 }
363} 300}
364 301
365#endif
366
367enum plugin_status plugin_start(const void* parameter) 302enum plugin_status plugin_start(const void* parameter)
368{ 303{
369 (void)parameter; 304 (void)parameter;
@@ -372,9 +307,6 @@ enum plugin_status plugin_start(const void* parameter)
372 backlight_ignore_timeout(); 307 backlight_ignore_timeout();
373 308
374 rb->show_logo(); 309 rb->show_logo();
375#ifdef HAVE_LCD_CHARCELLS
376 rb->lcd_double_height(false);
377#endif
378 310
379 /* Show the logo for about 3 secs allowing the user to stop */ 311 /* Show the logo for about 3 secs allowing the user to stop */
380 if(!rb->action_userabort(3*HZ)) 312 if(!rb->action_userabort(3*HZ))