Set the brightness before setting the timeout values for the backlight and buttonlights
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13382 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9eeb0ada6a
commit
2ac037d7c5
1 changed files with 5 additions and 5 deletions
|
@ -700,6 +700,9 @@ void settings_apply(void)
|
||||||
remote_backlight_set_on_button_hold(global_settings.remote_backlight_on_button_hold);
|
remote_backlight_set_on_button_hold(global_settings.remote_backlight_on_button_hold);
|
||||||
#endif
|
#endif
|
||||||
#endif /* HAVE_REMOTE_LCD */
|
#endif /* HAVE_REMOTE_LCD */
|
||||||
|
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
|
||||||
|
backlight_set_brightness(global_settings.brightness);
|
||||||
|
#endif
|
||||||
#ifdef HAVE_BACKLIGHT
|
#ifdef HAVE_BACKLIGHT
|
||||||
backlight_set_timeout(global_settings.backlight_timeout);
|
backlight_set_timeout(global_settings.backlight_timeout);
|
||||||
#if CONFIG_CHARGING
|
#if CONFIG_CHARGING
|
||||||
|
@ -710,14 +713,11 @@ void settings_apply(void)
|
||||||
backlight_set_fade_out(global_settings.backlight_fade_out);
|
backlight_set_fade_out(global_settings.backlight_fade_out);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_BUTTON_LIGHT
|
|
||||||
button_backlight_set_timeout(global_settings.button_light_timeout);
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
|
#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
|
||||||
buttonlight_set_brightness(global_settings.buttonlight_brightness);
|
buttonlight_set_brightness(global_settings.buttonlight_brightness);
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
|
#ifdef HAVE_BUTTON_LIGHT
|
||||||
backlight_set_brightness(global_settings.brightness);
|
button_backlight_set_timeout(global_settings.button_light_timeout);
|
||||||
#endif
|
#endif
|
||||||
ata_spindown(global_settings.disk_spindown);
|
ata_spindown(global_settings.disk_spindown);
|
||||||
#if (CONFIG_CODEC == MAS3507D) && !defined(SIMULATOR)
|
#if (CONFIG_CODEC == MAS3507D) && !defined(SIMULATOR)
|
||||||
|
|
Loading…
Reference in a new issue