summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-07-25 11:15:50 +0000
committerJens Arnold <amiconn@rockbox.org>2006-07-25 11:15:50 +0000
commit9051afa8a061152941ed4cf99e0ceb9bc4a3caf1 (patch)
tree40883fe94c814baadeb6a08d0060dd3c8dea7015 /apps/settings.h
parent7136fd9bb6f589ae873057aa9731c45f17a7b339 (diff)
Contrast setting cleanup: * Only include contrast setting for targets where it's used. * Make lcd_default_contrast() a stub for simulators.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10317 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/settings.h b/apps/settings.h
index 58e8f3f14e..d32b58ac85 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -274,7 +274,9 @@ struct user_settings
/* device settings */
- int contrast; /* lcd contrast: 0-63 0=low 63=high */
+#if !defined(HAVE_LCD_COLOR) || defined(IAUDIO_X5)
+ int contrast; /* lcd contrast */
+#endif
bool invert; /* invert display */
bool invert_cursor; /* invert the current file in dir browser and menu
instead of using the default cursor */
@@ -573,16 +575,13 @@ extern const char rec_base_directory[];
#ifdef IAUDIO_X5
#define MIN_CONTRAST_SETTING 0
#define MAX_CONTRAST_SETTING 29
-#else
-#ifdef HAVE_LCD_CHARCELLS
+#elif defined HAVE_LCD_CHARCELLS
+#define MIN_CONTRAST_SETTING 5
#define MAX_CONTRAST_SETTING 31
-#define DEFAULT_CONTRAST_SETTING 30
#else
+#define MIN_CONTRAST_SETTING 5
#define MAX_CONTRAST_SETTING 63
-#define DEFAULT_CONTRAST_SETTING 38
#endif
-#define MIN_CONTRAST_SETTING 5
-#endif // X5
/* argument bits for settings_load() */
#define SETTINGS_RTC 1 /* only the settings from the RTC nonvolatile RAM */