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/snow.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/snow.c')
-rw-r--r-- | apps/plugins/snow.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/plugins/snow.c b/apps/plugins/snow.c index 74efb8ea00..f05d3c2a44 100644 --- a/apps/plugins/snow.c +++ b/apps/plugins/snow.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/mylcd.h" | 22 | #include "lib/mylcd.h" |
24 | #include "lib/pluginlib_actions.h" | 23 | #include "lib/pluginlib_actions.h" |
25 | 24 | ||
@@ -143,11 +142,6 @@ static void snow_init(void) | |||
143 | particles[i][0]=-1; | 142 | particles[i][0]=-1; |
144 | particles[i][1]=-1; | 143 | particles[i][1]=-1; |
145 | } | 144 | } |
146 | #ifdef HAVE_LCD_CHARCELLS | ||
147 | pgfx_display(0, 0); /* display three times */ | ||
148 | pgfx_display(4, 0); | ||
149 | pgfx_display(8, 0); | ||
150 | #endif | ||
151 | mylcd_clear_display(); | 145 | mylcd_clear_display(); |
152 | #ifdef HAVE_REMOTE_LCD | 146 | #ifdef HAVE_REMOTE_LCD |
153 | rb->lcd_remote_clear_display(); | 147 | rb->lcd_remote_clear_display(); |
@@ -159,13 +153,6 @@ enum plugin_status plugin_start(const void* parameter) | |||
159 | int button; | 153 | int button; |
160 | (void)(parameter); | 154 | (void)(parameter); |
161 | 155 | ||
162 | #ifdef HAVE_LCD_CHARCELLS | ||
163 | if (!pgfx_init(4, 2)) | ||
164 | { | ||
165 | rb->splash(HZ*2, "Old LCD :("); | ||
166 | return PLUGIN_OK; | ||
167 | } | ||
168 | #endif | ||
169 | #ifdef HAVE_LCD_COLOR | 156 | #ifdef HAVE_LCD_COLOR |
170 | rb->lcd_clear_display(); | 157 | rb->lcd_clear_display(); |
171 | rb->lcd_set_foreground(LCD_WHITE); | 158 | rb->lcd_set_foreground(LCD_WHITE); |
@@ -186,17 +173,11 @@ enum plugin_status plugin_start(const void* parameter) | |||
186 | 173 | ||
187 | if ((button == SNOW_QUIT) || (button == SNOW_QUIT2)) | 174 | if ((button == SNOW_QUIT) || (button == SNOW_QUIT2)) |
188 | { | 175 | { |
189 | #ifdef HAVE_LCD_CHARCELLS | ||
190 | pgfx_release(); | ||
191 | #endif | ||
192 | return PLUGIN_OK; | 176 | return PLUGIN_OK; |
193 | } | 177 | } |
194 | else | 178 | else |
195 | if (rb->default_event_handler(button) == SYS_USB_CONNECTED) | 179 | if (rb->default_event_handler(button) == SYS_USB_CONNECTED) |
196 | { | 180 | { |
197 | #ifdef HAVE_LCD_CHARCELLS | ||
198 | pgfx_release(); | ||
199 | #endif | ||
200 | return PLUGIN_USB_CONNECTED; | 181 | return PLUGIN_USB_CONNECTED; |
201 | } | 182 | } |
202 | } | 183 | } |