summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index 35823b6b99..d0e4a593a0 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -209,8 +209,6 @@ CONFIG_KEYPAD == SANSA_M200_PAD
209#endif 209#endif
210 210
211 211
212static const struct plugin_api* rb;
213
214enum menu_items { 212enum menu_items {
215 BM_START, 213 BM_START,
216 BM_SEL_START, 214 BM_SEL_START,
@@ -1289,7 +1287,6 @@ int game_loop(void)
1289 1287
1290 rb->srand( *rb->current_tick ); 1288 rb->srand( *rb->current_tick );
1291 1289
1292 configfile_init(rb);
1293 configfile_load(HIGH_SCORE,config,1,0); 1290 configfile_load(HIGH_SCORE,config,1,0);
1294 1291
1295 switch(game_menu(0)) { 1292 switch(game_menu(0)) {
@@ -2090,17 +2087,16 @@ int game_loop(void)
2090} 2087}
2091 2088
2092/* this is the plugin entry point */ 2089/* this is the plugin entry point */
2093enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 2090enum plugin_status plugin_start(const void* parameter)
2094{ 2091{
2095 (void)parameter; 2092 (void)parameter;
2096 rb = api;
2097 2093
2098 rb->lcd_setfont(FONT_SYSFIXED); 2094 rb->lcd_setfont(FONT_SYSFIXED);
2099#if LCD_DEPTH > 1 2095#if LCD_DEPTH > 1
2100 rb->lcd_set_backdrop(NULL); 2096 rb->lcd_set_backdrop(NULL);
2101#endif 2097#endif
2102 /* Turn off backlight timeout */ 2098 /* Turn off backlight timeout */
2103 backlight_force_on(rb); /* backlight control in lib/helper.c */ 2099 backlight_force_on(); /* backlight control in lib/helper.c */
2104 2100
2105 /* now go ahead and have fun! */ 2101 /* now go ahead and have fun! */
2106 while (game_loop()!=1); 2102 while (game_loop()!=1);
@@ -2110,7 +2106,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
2110 /* Restore user's original backlight setting */ 2106 /* Restore user's original backlight setting */
2111 rb->lcd_setfont(FONT_UI); 2107 rb->lcd_setfont(FONT_UI);
2112 /* Turn on backlight timeout (revert to settings) */ 2108 /* Turn on backlight timeout (revert to settings) */
2113 backlight_use_settings(rb); /* backlight control in lib/helper.c */ 2109 backlight_use_settings(); /* backlight control in lib/helper.c */
2114 2110
2115 return PLUGIN_OK; 2111 return PLUGIN_OK;
2116} 2112}