summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHristo Kovachev <bger@rockbox.org>2006-05-18 11:12:54 +0000
committerHristo Kovachev <bger@rockbox.org>2006-05-18 11:12:54 +0000
commit8fb9f023acc2a665c1343a4878086df4ed31b686 (patch)
tree5029f5d1e5dcf472b89a59eb77a4e39242e8e447
parentc138d004dc3e89b695fcd36156974533a8076417 (diff)
downloadrockbox-8fb9f023acc2a665c1343a4878086df4ed31b686.tar.gz
rockbox-8fb9f023acc2a665c1343a4878086df4ed31b686.tar.bz2
rockbox-8fb9f023acc2a665c1343a4878086df4ed31b686.zip
Use more proper default contrast for the iriver lcd remotes, also reset
the contrast in the same way as it is for the main screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9955 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/settings.c3
-rw-r--r--firmware/drivers/lcd-h100-remote.c5
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 0031130f9a..f1b6f29957 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -1694,6 +1694,9 @@ void settings_reset(void) {
global_settings.superbass = sound_default(SOUND_SUPERBASS);
#endif
global_settings.contrast = lcd_default_contrast();
+#ifdef HAVE_LCD_REMOTE
+ global_settings.remote_contrast = lcd_remote_default_contrast();
+#endif
#ifdef CONFIG_TUNER
global_settings.fmr_file[0] = '\0';
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c
index 4d3921fa26..99f1b9aa55 100644
--- a/firmware/drivers/lcd-h100-remote.c
+++ b/firmware/drivers/lcd-h100-remote.c
@@ -94,10 +94,11 @@ static struct event_queue remote_scroll_queue;
static bool remote_initialized = false;
static int _remote_type = 0;
+#define LCD_REMOTE_DEFAULT_CONTRAST 42;
/* cached settings values */
static bool cached_invert = false;
static bool cached_flip = false;
-static int cached_contrast = 32;
+static int cached_contrast = LCD_REMOTE_DEFAULT_CONTRAST;
#endif
/* scrolling */
@@ -350,7 +351,7 @@ void lcd_remote_write_data(const unsigned char* p_bytes, int count)
int lcd_remote_default_contrast(void)
{
- return 32;
+ return LCD_REMOTE_DEFAULT_CONTRAST;
}
#ifndef SIMULATOR