diff options
Diffstat (limited to 'apps/plugins/brickmania.c')
| -rw-r--r-- | apps/plugins/brickmania.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index cc19519..2530cfc 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -19,6 +19,7 @@ #include "plugin.h" #include "configfile.h" /* Part of libplugin */ +#include "helper.h" PLUGIN_HEADER @@ -2029,9 +2030,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) #if LCD_DEPTH > 1 rb->lcd_set_backdrop(NULL); #endif - /* Permanently enable the backlight (unless the user has turned it off) */ - if (rb->global_settings->backlight_timeout > 0) - rb->backlight_set_timeout(1); + /* Turn off backlight timeout */ + backlight_force_on(); /* backlight control in lib/helper.c */ /* now go ahead and have fun! */ while (game_loop()!=1); @@ -2040,7 +2040,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) /* Restore user's original backlight setting */ rb->lcd_setfont(FONT_UI); - rb->backlight_set_timeout(rb->global_settings->backlight_timeout); + /* Turn on backlight timeout (revert to settings) */ + backlight_use_settings(); /* backlight control in lib/helper.c */ return PLUGIN_OK; } |