diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-19 19:38:45 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 21:20:13 +0000 |
commit | 0c4f89370d05056faa789aa9cabcccc4e509fb9f (patch) | |
tree | 6ddf7fff0a47564db41d39927ea1acbdb03e74ee /apps/plugins/logo.c | |
parent | 092c340a2062fa98b7387fc5fd63578ddae7d0b6 (diff) | |
download | rockbox-0c4f89370d05056faa789aa9cabcccc4e509fb9f.tar.gz rockbox-0c4f89370d05056faa789aa9cabcccc4e509fb9f.zip |
[2/4] get rid of HAVE_LCD_CHARCELLS
HAVE_LCD_BITMAP is now redundant.
lcd_bitmap is always-on in features.txt so manual and lang strings
don't have to change
Change-Id: I08eeb20de48099ffc2dc23782711af368c2ec794
Diffstat (limited to 'apps/plugins/logo.c')
-rw-r--r-- | apps/plugins/logo.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c index e1c570b6a5..60bed3b826 100644 --- a/apps/plugins/logo.c +++ b/apps/plugins/logo.c | |||
@@ -19,7 +19,6 @@ | |||
19 | * | 19 | * |
20 | **************************************************************************/ | 20 | **************************************************************************/ |
21 | #include "plugin.h" | 21 | #include "plugin.h" |
22 | #include "lib/playergfx.h" | ||
23 | #include "lib/pluginlib_actions.h" | 22 | #include "lib/pluginlib_actions.h" |
24 | 23 | ||
25 | /* this set the context to use with PLA */ | 24 | /* this set the context to use with PLA */ |
@@ -81,19 +80,9 @@ enum plugin_status plugin_start(const void* parameter) { | |||
81 | int y = (DISPLAY_HEIGHT / 2) - (LOGO_HEIGHT / 2); | 80 | int y = (DISPLAY_HEIGHT / 2) - (LOGO_HEIGHT / 2); |
82 | int dx; | 81 | int dx; |
83 | int dy; | 82 | int dy; |
84 | #ifdef HAVE_LCD_CHARCELLS | ||
85 | int cpos = -1; | ||
86 | int old_cpos = -1; | ||
87 | #endif | ||
88 | 83 | ||
89 | (void)parameter; | 84 | (void)parameter; |
90 | 85 | ||
91 | #ifdef HAVE_LCD_CHARCELLS | ||
92 | if (!pgfx_init(4, 2)) { | ||
93 | rb->splash(HZ*2, "Old LCD :("); | ||
94 | return PLUGIN_OK; | ||
95 | } | ||
96 | #endif | ||
97 | rb->srand(*rb->current_tick); | 86 | rb->srand(*rb->current_tick); |
98 | dx = rb->rand()%(2*RAND_SCALE+1) - RAND_SCALE; | 87 | dx = rb->rand()%(2*RAND_SCALE+1) - RAND_SCALE; |
99 | dy = rb->rand()%(2*RAND_SCALE+1) - RAND_SCALE; | 88 | dy = rb->rand()%(2*RAND_SCALE+1) - RAND_SCALE; |
@@ -159,9 +148,6 @@ enum plugin_status plugin_start(const void* parameter) { | |||
159 | switch (button) { | 148 | switch (button) { |
160 | case LP_QUIT: | 149 | case LP_QUIT: |
161 | case LP_QUIT2: | 150 | case LP_QUIT2: |
162 | #ifdef HAVE_LCD_CHARCELLS | ||
163 | pgfx_release(); | ||
164 | #endif | ||
165 | return PLUGIN_OK; | 151 | return PLUGIN_OK; |
166 | case LP_DEC_X: | 152 | case LP_DEC_X: |
167 | case LP_DEC_X_REPEAT: | 153 | case LP_DEC_X_REPEAT: |
@@ -184,9 +170,6 @@ enum plugin_status plugin_start(const void* parameter) { | |||
184 | 170 | ||
185 | default: | 171 | default: |
186 | if (rb->default_event_handler(button) == SYS_USB_CONNECTED) { | 172 | if (rb->default_event_handler(button) == SYS_USB_CONNECTED) { |
187 | #ifdef HAVE_LCD_CHARCELLS | ||
188 | pgfx_release(); | ||
189 | #endif | ||
190 | return PLUGIN_USB_CONNECTED; | 173 | return PLUGIN_USB_CONNECTED; |
191 | } | 174 | } |
192 | break; | 175 | break; |