From 6f95ab7de7370bc8d5c803d22984908f6174a0e3 Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Tue, 8 May 2007 06:45:38 +0000 Subject: 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 --- apps/settings_list.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/settings_list.c') diff --git a/apps/settings_list.c b/apps/settings_list.c index e781c51be0..d39779607d 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c @@ -1183,6 +1183,11 @@ const struct settings_list settings[] = { 0, 18, 1, backlight_formatter, backlight_getlang, button_backlight_set_timeout), #endif +#ifdef HAVE_BUTTONLIGHT_BRIGHTNESS + INT_SETTING(0, buttonlight_brightness, LANG_BUTTONLIGHT_BRIGHTNESS, DEFAULT_BRIGHTNESS_SETTING, + "button light brightness",UNIT_INT, MIN_BRIGHTNESS_SETTING, MAX_BRIGHTNESS_SETTING, 1, + NULL, NULL, buttonlight_set_brightness), +#endif }; const int nb_settings = sizeof(settings)/sizeof(*settings); -- cgit v1.2.3