summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-01 10:59:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-01 10:59:36 +0000
commitb95fe1afc694ab97b6f39fc4bd0baa238e687a8f (patch)
treece8a338e130571604693bf28cfcdcfbf72e5f0d9 /apps/settings.h
parent180485c30496314ba25b3cdcf59c665bf8d11c0a (diff)
downloadrockbox-b95fe1afc694ab97b6f39fc4bd0baa238e687a8f.zip
rockbox-b95fe1afc694ab97b6f39fc4bd0baa238e687a8f.tar.gz
rockbox-b95fe1afc694ab97b6f39fc4bd0baa238e687a8f.tar.bz2
rockbox-b95fe1afc694ab97b6f39fc4bd0baa238e687a8f.tar.xz
Mark A. Hillebrand's patch that offers a new setting that if enabled, keeps
the backlight on all the time while the charger is connected. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2464 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/settings.h b/apps/settings.h
index bbc7bb3..eed0b61 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -63,7 +63,10 @@ struct user_settings
int contrast; /* lcd contrast: 0-100 0=low 100=high */
int poweroff; /* power off timer */
- int backlight; /* backlight off timer: 0-100 0=never:each 1% = 10 secs */
+ 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 */
@@ -144,7 +147,8 @@ extern char rockboxdir[];
#endif
#define MIN_CONTRAST_SETTING 5
#define DEFAULT_POWEROFF_SETTING 0
-#define DEFAULT_BACKLIGHT_SETTING 5
+#define DEFAULT_BACKLIGHT_TIMEOUT_SETTING 5
+#define DEFAULT_BACKLIGHT_ON_WHEN_CHARGING_SETTING 0
#define DEFAULT_FF_REWIND_MIN_STEP FF_REWIND_1000
#define DEFAULT_FF_REWIND_ACCEL_SETTING 3