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.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/apps/plugins/credits.c b/apps/plugins/credits.c
index 1b85a8378f..66ec714b5b 100644
--- a/apps/plugins/credits.c
+++ b/apps/plugins/credits.c
@@ -27,23 +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
30static bool stop_autoscroll(int action)
31{
32 switch (action)
33 {
34 case ACTION_STD_CANCEL:
35 case ACTION_STD_OK:
36 case ACTION_STD_NEXT:
37 case ACTION_STD_NEXTREPEAT:
38 case ACTION_STD_PREV:
39 case ACTION_STD_PREVREPEAT:
40 return true;
41 default:
42 return false;
43 }
44 return false;
45}
46
47#ifdef HAVE_LCD_CHARCELLS 30#ifdef HAVE_LCD_CHARCELLS
48 31
49static void roll_credits(void) 32static void roll_credits(void)
@@ -107,6 +90,23 @@ static void roll_credits(void)
107 90
108#else 91#else
109 92
93static bool stop_autoscroll(int action)
94{
95 switch (action)
96 {
97 case ACTION_STD_CANCEL:
98 case ACTION_STD_OK:
99 case ACTION_STD_NEXT:
100 case ACTION_STD_NEXTREPEAT:
101 case ACTION_STD_PREV:
102 case ACTION_STD_PREVREPEAT:
103 return true;
104 default:
105 return false;
106 }
107 return false;
108}
109
110static int update_rowpos(int action, int cur_pos, int rows_per_screen, int tot_rows) 110static int update_rowpos(int action, int cur_pos, int rows_per_screen, int tot_rows)
111{ 111{
112 switch(action) 112 switch(action)