mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
f2b5c29234
commit
cb53e3cef4
19 changed files with 100 additions and 87 deletions
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue