From cb53e3cef44ec214836b9545a748cf5b84bec3ad Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Wed, 15 Aug 2007 12:42:09 +0000 Subject: Bring mpegplayer backlight fix to the other plugins, this also fixes some wrongly ifdef'd backlight calls. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14352 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/fire.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/plugins/fire.c') diff --git a/apps/plugins/fire.c b/apps/plugins/fire.c index 59e8396..3cfd1ab 100644 --- a/apps/plugins/fire.c +++ b/apps/plugins/fire.c @@ -20,6 +20,7 @@ ****************************************************************************/ #include "plugin.h" +#include "helper.h" #ifdef HAVE_LCD_BITMAP /* and also not for the Player */ #ifndef HAVE_LCD_COLOR @@ -330,7 +331,8 @@ void cleanup(void *parameter) #ifndef HAVE_LCD_COLOR gray_release(); #endif - 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 */ } /* @@ -420,8 +422,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) #if LCD_DEPTH > 1 rb->lcd_set_backdrop(NULL); #endif - if (rb->global_settings->backlight_timeout > 0) - rb->backlight_set_timeout(1);/* keep the light on */ + /* Turn off backlight timeout */ + backlight_force_on(); /* backlight control in lib/helper.c */ ret = main(); -- cgit v1.1