summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2007-05-08 06:45:38 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2007-05-08 06:45:38 +0000
commit6f95ab7de7370bc8d5c803d22984908f6174a0e3 (patch)
treeb69ab3bb886ca4ad5d17cd3283ee21aa19751533 /apps/settings.c
parent830576bb0b08dca0f5e9a90bf0526505b1c34a0a (diff)
Add in buttonlight brightness setting for the Gigabeat, and setup the framework for future players that have adjustable button light brightness settings. Also fixed a bug in the backlight code when the brightness was set to 0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13356 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 35a063bf96..81dbe71491 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -713,6 +713,9 @@ void settings_apply(void)
#ifdef HAVE_BUTTON_LIGHT
button_backlight_set_timeout(global_settings.button_light_timeout);
#endif
+#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS
+ buttonlight_set_brightness(global_settings.buttonlight_brightness);
+#endif
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
backlight_set_brightness(global_settings.brightness);
#endif