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
This commit is contained in:
Peter D'Hoye 2007-08-15 12:42:09 +00:00
parent f2b5c29234
commit cb53e3cef4
19 changed files with 100 additions and 87 deletions

View file

@ -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 */
}