diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-05-21 07:08:27 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-05-21 07:08:27 +0000 |
commit | 5f796087b009fee1ae60904b0355cc7febe3330f (patch) | |
tree | 3a3b11d51351aebea95004438420423cc3e594ef /apps/plugins/credits.c | |
parent | b4275d4941e464c851ae3f5fe33c80f56ea365e5 (diff) | |
download | rockbox-5f796087b009fee1ae60904b0355cc7febe3330f.tar.gz rockbox-5f796087b009fee1ae60904b0355cc7febe3330f.zip |
fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17592 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/credits.c')
-rw-r--r-- | apps/plugins/credits.c | 34 |
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 | ||
30 | static 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 | ||
49 | static void roll_credits(void) | 32 | static void roll_credits(void) |
@@ -107,6 +90,23 @@ static void roll_credits(void) | |||
107 | 90 | ||
108 | #else | 91 | #else |
109 | 92 | ||
93 | static 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 | |||
110 | static int update_rowpos(int action, int cur_pos, int rows_per_screen, int tot_rows) | 110 | static int update_rowpos(int action, int cur_pos, int rows_per_screen, int tot_rows) |
111 | { | 111 | { |
112 | switch(action) | 112 | switch(action) |