summaryrefslogtreecommitdiff
path: root/apps/plugins/demystify.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/demystify.c')
-rw-r--r--apps/plugins/demystify.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/apps/plugins/demystify.c b/apps/plugins/demystify.c
index 145c3ce0be..5f44e11f3d 100644
--- a/apps/plugins/demystify.c
+++ b/apps/plugins/demystify.c
@@ -67,8 +67,6 @@ struct line_color
67 67
68/******************************* Globals ***********************************/ 68/******************************* Globals ***********************************/
69 69
70static const struct plugin_api* rb; /* global api struct pointer */
71
72/* 70/*
73 * Compute a new random step to make the point bounce the borders of the screen 71 * Compute a new random step to make the point bounce the borders of the screen
74 */ 72 */
@@ -258,9 +256,9 @@ void cleanup(void *parameter)
258{ 256{
259 (void)parameter; 257 (void)parameter;
260 258
261 backlight_use_settings(rb); 259 backlight_use_settings();
262#ifdef HAVE_REMOTE_LCD 260#ifdef HAVE_REMOTE_LCD
263 remote_backlight_use_settings(rb); 261 remote_backlight_use_settings();
264#endif 262#endif
265} 263}
266 264
@@ -384,7 +382,7 @@ int plugin_main(void)
384 rb->yield(); 382 rb->yield();
385 else 383 else
386 rb->sleep(sleep_time); 384 rb->sleep(sleep_time);
387 action = pluginlib_getaction(rb, TIMEOUT_NOBLOCK, 385 action = pluginlib_getaction(TIMEOUT_NOBLOCK,
388 plugin_contexts, NB_ACTION_CONTEXTS); 386 plugin_contexts, NB_ACTION_CONTEXTS);
389 switch(action) 387 switch(action)
390 { 388 {
@@ -426,18 +424,17 @@ int plugin_main(void)
426 424
427/*************************** Plugin entry point ****************************/ 425/*************************** Plugin entry point ****************************/
428 426
429enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 427enum plugin_status plugin_start(const void* parameter)
430{ 428{
431 int ret; 429 int ret;
432 430
433 rb = api; /* copy to global api pointer */
434 (void)parameter; 431 (void)parameter;
435#if LCD_DEPTH > 1 432#if LCD_DEPTH > 1
436 rb->lcd_set_backdrop(NULL); 433 rb->lcd_set_backdrop(NULL);
437#endif 434#endif
438 backlight_force_on(rb); /* backlight control in lib/helper.c */ 435 backlight_force_on(); /* backlight control in lib/helper.c */
439#ifdef HAVE_REMOTE_LCD 436#ifdef HAVE_REMOTE_LCD
440 remote_backlight_force_on(rb); /* remote backlight control in lib/helper.c */ 437 remote_backlight_force_on(); /* remote backlight control in lib/helper.c */
441#endif 438#endif
442 ret = plugin_main(); 439 ret = plugin_main();
443 440