summaryrefslogtreecommitdiff
path: root/apps/plugins/plasma.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/plasma.c')
-rw-r--r--apps/plugins/plasma.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c
index 8e85bf08c4..6bd4d095ce 100644
--- a/apps/plugins/plasma.c
+++ b/apps/plugins/plasma.c
@@ -38,7 +38,6 @@ PLUGIN_HEADER
38 38
39/******************************* Globals ***********************************/ 39/******************************* Globals ***********************************/
40 40
41static const struct plugin_api* rb; /* global api struct pointer */
42static unsigned char wave_array[256]; /* Pre calculated wave array */ 41static unsigned char wave_array[256]; /* Pre calculated wave array */
43#ifdef HAVE_LCD_COLOR 42#ifdef HAVE_LCD_COLOR
44static fb_data colours[256]; /* Smooth transition of shades */ 43static fb_data colours[256]; /* Smooth transition of shades */
@@ -245,7 +244,7 @@ void cleanup(void *parameter)
245 grey_release(); 244 grey_release();
246#endif 245#endif
247 /* Turn on backlight timeout (revert to settings) */ 246 /* Turn on backlight timeout (revert to settings) */
248 backlight_use_settings(rb); /* backlight control in lib/helper.c */ 247 backlight_use_settings(); /* backlight control in lib/helper.c */
249} 248}
250 249
251/* 250/*
@@ -274,7 +273,7 @@ int main(void)
274 /* get the remainder of the plugin buffer */ 273 /* get the remainder of the plugin buffer */
275 gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size); 274 gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size);
276 275
277 grey_init(rb, gbuf, gbuf_size, GREY_ON_COP, LCD_WIDTH, LCD_HEIGHT, NULL); 276 grey_init(gbuf, gbuf_size, GREY_ON_COP, LCD_WIDTH, LCD_HEIGHT, NULL);
278 /* switch on greyscale overlay */ 277 /* switch on greyscale overlay */
279 grey_show(true); 278 grey_show(true);
280#endif 279#endif
@@ -365,17 +364,16 @@ int main(void)
365 364
366/*************************** Plugin entry point ****************************/ 365/*************************** Plugin entry point ****************************/
367 366
368enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 367enum plugin_status plugin_start(const void* parameter)
369{ 368{
370 int ret; 369 int ret;
371 370
372 rb = api; /* copy to global api pointer */
373 (void)parameter; 371 (void)parameter;
374#if LCD_DEPTH > 1 372#if LCD_DEPTH > 1
375 rb->lcd_set_backdrop(NULL); 373 rb->lcd_set_backdrop(NULL);
376#endif 374#endif
377 /* Turn off backlight timeout */ 375 /* Turn off backlight timeout */
378 backlight_force_on(rb); /* backlight control in lib/helper.c */ 376 backlight_force_on(); /* backlight control in lib/helper.c */
379 377
380 ret = main(); 378 ret = main();
381 379