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/lib/helper.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'apps/plugins/lib') diff --git a/apps/plugins/lib/helper.c b/apps/plugins/lib/helper.c index b2b0582..2149b93 100644 --- a/apps/plugins/lib/helper.c +++ b/apps/plugins/lib/helper.c @@ -26,11 +26,13 @@ extern struct plugin_api* rb; void backlight_force_on(void) { #ifdef HAVE_BACKLIGHT - rb->backlight_set_timeout(1); + if (rb->global_settings->backlight_timeout > 1) + rb->backlight_set_timeout(1); #if CONFIG_CHARGING - rb->backlight_set_timeout_plugged(1); -#endif -#endif + if (rb->global_settings->backlight_timeout_plugged > 1) + rb->backlight_set_timeout_plugged(1); +#endif /* CONFIG_CHARGING */ +#endif /* HAVE_BACKLIGHT */ } /* reset backlight operation to its settings */ @@ -41,6 +43,6 @@ void backlight_use_settings(void) #if CONFIG_CHARGING rb->backlight_set_timeout_plugged(rb->global_settings-> \ backlight_timeout_plugged); -#endif -#endif +#endif /* CONFIG_CHARGING */ +#endif /* HAVE_BACKLIGHT */ } -- cgit v1.1