diff options
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 | } |