summaryrefslogtreecommitdiff
path: root/apps/plugins/chopper.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/chopper.c')
-rw-r--r--apps/plugins/chopper.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index 5c82b1eeea..971aeb8512 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -142,8 +142,6 @@ Still To do:
142#endif 142#endif
143#endif 143#endif
144 144
145static const struct plugin_api* rb;
146
147#define NUMBER_OF_BLOCKS 8 145#define NUMBER_OF_BLOCKS 8
148#define NUMBER_OF_PARTICLES 3 146#define NUMBER_OF_PARTICLES 3
149#define MAX_TERRAIN_NODES 15 147#define MAX_TERRAIN_NODES 15
@@ -996,10 +994,9 @@ void chopper_load(bool newgame)
996} 994}
997 995
998/* this is the plugin entry point */ 996/* this is the plugin entry point */
999enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 997enum plugin_status plugin_start(const void* parameter)
1000{ 998{
1001 (void)parameter; 999 (void)parameter;
1002 rb = api;
1003 int ret; 1000 int ret;
1004 1001
1005 rb->lcd_setfont(FONT_SYSFIXED); 1002 rb->lcd_setfont(FONT_SYSFIXED);
@@ -1012,12 +1009,10 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
1012#endif 1009#endif
1013 1010
1014 /* Turn off backlight timeout */ 1011 /* Turn off backlight timeout */
1015 backlight_force_on(rb); /* backlight control in lib/helper.c */ 1012 backlight_force_on(); /* backlight control in lib/helper.c */
1016 1013
1017 rb->srand( *rb->current_tick ); 1014 rb->srand( *rb->current_tick );
1018 1015
1019 xlcd_init(rb);
1020 configfile_init(rb);
1021 configfile_load(CFG_FILE, config, 1, 0); 1016 configfile_load(CFG_FILE, config, 1, 0);
1022 1017
1023 chopper_load(true); 1018 chopper_load(true);
@@ -1027,7 +1022,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
1027 1022
1028 rb->lcd_setfont(FONT_UI); 1023 rb->lcd_setfont(FONT_UI);
1029 /* Turn on backlight timeout (revert to settings) */ 1024 /* Turn on backlight timeout (revert to settings) */
1030 backlight_use_settings(rb); /* backlight control in lib/helper.c */ 1025 backlight_use_settings(); /* backlight control in lib/helper.c */
1031 1026
1032 return ret; 1027 return ret;
1033} 1028}