diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-10-01 11:12:57 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-10-01 11:12:57 +0000 |
commit | c43b36c70ca98d57a532ba105dd36d7670b7042f (patch) | |
tree | 580ca1576068adb51a062007392c117a209f2cc6 /apps | |
parent | ad19f6f9120abb2c97ba7fc1868ece1ce8e5aa0d (diff) |
backlight when charging now is for players and simulators too
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2466 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings.h | 2 | ||||
-rw-r--r-- | apps/settings_menu.c | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/apps/settings.h b/apps/settings.h index eed0b61c20..437f0937dd 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -64,9 +64,7 @@ struct user_settings int contrast; /* lcd contrast: 0-100 0=low 100=high */ int poweroff; /* power off timer */ int backlight_timeout; /* backlight off timeout: 0-18 0=never,1=always,then according to timeout_values[] */ -#ifdef HAVE_CHARGE_CTRL bool backlight_on_when_charging; -#endif bool discharge; /* maintain charge of at least: false = 90%, true = 10% */ /* resume settings */ diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 4e521bca84..3b83e18fe4 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -144,7 +144,6 @@ static bool resume(void) names, 3, NULL ); } -#ifdef HAVE_CHARGE_CTRL static bool backlight_on_when_charging(void) { bool result = set_bool(str(LANG_BACKLIGHT_ON_WHEN_CHARGING), @@ -152,7 +151,6 @@ static bool backlight_on_when_charging(void) backlight_set_on_when_charging(global_settings.backlight_on_when_charging); return result; } -#endif static bool backlight_timer(void) { @@ -387,9 +385,7 @@ static bool display_settings_menu(void) struct menu_items items[] = { { str(LANG_SCROLL_MENU), scroll_speed }, { str(LANG_BACKLIGHT), backlight_timer }, -#ifdef HAVE_CHARGE_CTRL { str(LANG_BACKLIGHT_ON_WHEN_CHARGING), backlight_on_when_charging }, -#endif { str(LANG_CONTRAST), contrast }, #ifdef HAVE_LCD_BITMAP { str(LANG_PM_MENU), peak_meter_menu }, |