mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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
This commit is contained in:
parent
c138d004dc
commit
8fb9f023ac
2 changed files with 6 additions and 2 deletions
|
|
@ -1694,6 +1694,9 @@ void settings_reset(void) {
|
||||||
global_settings.superbass = sound_default(SOUND_SUPERBASS);
|
global_settings.superbass = sound_default(SOUND_SUPERBASS);
|
||||||
#endif
|
#endif
|
||||||
global_settings.contrast = lcd_default_contrast();
|
global_settings.contrast = lcd_default_contrast();
|
||||||
|
#ifdef HAVE_LCD_REMOTE
|
||||||
|
global_settings.remote_contrast = lcd_remote_default_contrast();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_TUNER
|
#ifdef CONFIG_TUNER
|
||||||
global_settings.fmr_file[0] = '\0';
|
global_settings.fmr_file[0] = '\0';
|
||||||
|
|
|
||||||
|
|
@ -94,10 +94,11 @@ static struct event_queue remote_scroll_queue;
|
||||||
static bool remote_initialized = false;
|
static bool remote_initialized = false;
|
||||||
static int _remote_type = 0;
|
static int _remote_type = 0;
|
||||||
|
|
||||||
|
#define LCD_REMOTE_DEFAULT_CONTRAST 42;
|
||||||
/* cached settings values */
|
/* cached settings values */
|
||||||
static bool cached_invert = false;
|
static bool cached_invert = false;
|
||||||
static bool cached_flip = false;
|
static bool cached_flip = false;
|
||||||
static int cached_contrast = 32;
|
static int cached_contrast = LCD_REMOTE_DEFAULT_CONTRAST;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* scrolling */
|
/* scrolling */
|
||||||
|
|
@ -350,7 +351,7 @@ void lcd_remote_write_data(const unsigned char* p_bytes, int count)
|
||||||
|
|
||||||
int lcd_remote_default_contrast(void)
|
int lcd_remote_default_contrast(void)
|
||||||
{
|
{
|
||||||
return 32;
|
return LCD_REMOTE_DEFAULT_CONTRAST;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue