diff options
Diffstat (limited to 'apps/plugins/fireworks.c')
-rw-r--r-- | apps/plugins/fireworks.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/plugins/fireworks.c b/apps/plugins/fireworks.c index 64b30dc36e..80e31a0e20 100644 --- a/apps/plugins/fireworks.c +++ b/apps/plugins/fireworks.c | |||
@@ -24,8 +24,6 @@ | |||
24 | 24 | ||
25 | PLUGIN_HEADER | 25 | PLUGIN_HEADER |
26 | 26 | ||
27 | static const struct plugin_api* rb; | ||
28 | |||
29 | /*** | 27 | /*** |
30 | * FIREWORKS.C by ZAKK ROBERTS | 28 | * FIREWORKS.C by ZAKK ROBERTS |
31 | * Rockbox plugin simulating a fireworks display. | 29 | * Rockbox plugin simulating a fireworks display. |
@@ -335,7 +333,7 @@ void fireworks_menu(void) | |||
335 | rb->lcd_clear_display(); | 333 | rb->lcd_clear_display(); |
336 | rb->lcd_update(); | 334 | rb->lcd_update(); |
337 | 335 | ||
338 | m = menu_init(rb, items, sizeof(items) / sizeof(*items), | 336 | m = menu_init(items, sizeof(items) / sizeof(*items), |
339 | NULL, NULL, NULL, NULL); | 337 | NULL, NULL, NULL, NULL); |
340 | 338 | ||
341 | rb->button_clear_queue(); | 339 | rb->button_clear_queue(); |
@@ -396,12 +394,10 @@ void fireworks_menu(void) | |||
396 | } | 394 | } |
397 | 395 | ||
398 | /* this is the plugin entry point */ | 396 | /* this is the plugin entry point */ |
399 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 397 | enum plugin_status plugin_start(const void* parameter) |
400 | { | 398 | { |
401 | (void)parameter; | 399 | (void)parameter; |
402 | 400 | ||
403 | rb = api; | ||
404 | |||
405 | int j, i, autofire=0; | 401 | int j, i, autofire=0; |
406 | int thisrocket=0; | 402 | int thisrocket=0; |
407 | int start_tick, elapsed_tick; | 403 | int start_tick, elapsed_tick; |
@@ -409,7 +405,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame | |||
409 | 405 | ||
410 | /* set everything up.. no BL timeout, no backdrop, | 406 | /* set everything up.. no BL timeout, no backdrop, |
411 | white-text-on-black-background. */ | 407 | white-text-on-black-background. */ |
412 | backlight_force_on(rb); /* backlight control in lib/helper.c */ | 408 | backlight_force_on(); /* backlight control in lib/helper.c */ |
413 | #if LCD_DEPTH > 1 | 409 | #if LCD_DEPTH > 1 |
414 | rb->lcd_set_backdrop(NULL); | 410 | rb->lcd_set_backdrop(NULL); |
415 | rb->lcd_set_background(LCD_BLACK); | 411 | rb->lcd_set_background(LCD_BLACK); |
@@ -566,7 +562,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame | |||
566 | } | 562 | } |
567 | } | 563 | } |
568 | /* Turn on backlight timeout (revert to settings) */ | 564 | /* Turn on backlight timeout (revert to settings) */ |
569 | backlight_use_settings(rb); /* backlight control in lib/helper.c */ | 565 | backlight_use_settings(); /* backlight control in lib/helper.c */ |
570 | 566 | ||
571 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 567 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
572 | rb->cpu_boost(false); | 568 | rb->cpu_boost(false); |