diff options
Diffstat (limited to 'apps/plugins/xobox.c')
-rw-r--r-- | apps/plugins/xobox.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c index 3cf66637d1..260728cb63 100644 --- a/apps/plugins/xobox.c +++ b/apps/plugins/xobox.c | |||
@@ -297,9 +297,7 @@ static int speed = 6; /* CYCLETIME = (11-speed)*10 ms */ | |||
297 | static int difficulty = 75; /* Percentage of screen that needs to be filled | 297 | static int difficulty = 75; /* Percentage of screen that needs to be filled |
298 | * in order to win the game */ | 298 | * in order to win the game */ |
299 | 299 | ||
300 | static const struct plugin_api *rb; | 300 | MEM_FUNCTION_WRAPPERS; |
301 | |||
302 | MEM_FUNCTION_WRAPPERS(rb); | ||
303 | 301 | ||
304 | static bool quit = false; | 302 | static bool quit = false; |
305 | 303 | ||
@@ -1014,12 +1012,11 @@ static int xobox_loop (void) | |||
1014 | } | 1012 | } |
1015 | 1013 | ||
1016 | /* plugin main procedure */ | 1014 | /* plugin main procedure */ |
1017 | enum plugin_status plugin_start (const struct plugin_api *api, const void *parameter) | 1015 | enum plugin_status plugin_start (const void *parameter) |
1018 | { | 1016 | { |
1019 | int ret = PLUGIN_OK; | 1017 | int ret = PLUGIN_OK; |
1020 | 1018 | ||
1021 | (void) parameter; | 1019 | (void) parameter; |
1022 | rb = api; | ||
1023 | 1020 | ||
1024 | rb->lcd_setfont (FONT_SYSFIXED); | 1021 | rb->lcd_setfont (FONT_SYSFIXED); |
1025 | #if LCD_DEPTH>=2 | 1022 | #if LCD_DEPTH>=2 |
@@ -1027,7 +1024,7 @@ enum plugin_status plugin_start (const struct plugin_api *api, const void *param | |||
1027 | #endif | 1024 | #endif |
1028 | 1025 | ||
1029 | /* Turn off backlight timeout */ | 1026 | /* Turn off backlight timeout */ |
1030 | backlight_force_on(rb); /* backlight control in lib/helper.c */ | 1027 | backlight_force_on(); /* backlight control in lib/helper.c */ |
1031 | 1028 | ||
1032 | quit = false; | 1029 | quit = false; |
1033 | 1030 | ||
@@ -1038,7 +1035,7 @@ enum plugin_status plugin_start (const struct plugin_api *api, const void *param | |||
1038 | } | 1035 | } |
1039 | 1036 | ||
1040 | /* Turn on backlight timeout (revert to settings) */ | 1037 | /* Turn on backlight timeout (revert to settings) */ |
1041 | backlight_use_settings(rb); /* backlight control in lib/helper.c */ | 1038 | backlight_use_settings(); /* backlight control in lib/helper.c */ |
1042 | rb->lcd_setfont (FONT_UI); | 1039 | rb->lcd_setfont (FONT_UI); |
1043 | 1040 | ||
1044 | return ret; | 1041 | return ret; |