Make the grey shades on greyscale iPods a little darker, and the dark grey on H1x0 a little brighter.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10511 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f64ad7d8f3
commit
fe6f4f200f
2 changed files with 4 additions and 4 deletions
|
@ -184,7 +184,7 @@ void lcd_init(void)
|
|||
lcd_write_command_ex(LCD_CNTL_POWER_CONTROL, 0x17, -1);
|
||||
|
||||
lcd_write_command_ex(LCD_CNTL_DISPLAY_START_LINE, 0, -1);
|
||||
lcd_write_command_ex(LCD_CNTL_GRAY_SCALE_PATTERN, 0x42, -1);
|
||||
lcd_write_command_ex(LCD_CNTL_GRAY_SCALE_PATTERN, 0x32, -1);
|
||||
lcd_write_command_ex(LCD_CNTL_DISPLAY_MODE, 0, -1); /* Greyscale mode */
|
||||
lcd_write_command(LCD_CNTL_DATA_INPUT_DIR | 0); /* Column mode */
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ static void lcd_cmd_and_data(unsigned cmd, unsigned data)
|
|||
/* LCD init */
|
||||
void lcd_init_device(void)
|
||||
{
|
||||
lcd_cmd_and_data(R_DISPLAY_CONTROL, 0x0015);
|
||||
lcd_cmd_and_data(R_DISPLAY_CONTROL, 0x0009);
|
||||
lcd_set_flip(false);
|
||||
lcd_cmd_and_data(R_ENTRY_MODE, 0x0000);
|
||||
|
||||
|
@ -167,9 +167,9 @@ void lcd_set_contrast(int val)
|
|||
void lcd_set_invert_display(bool yesno)
|
||||
{
|
||||
if (yesno)
|
||||
lcd_cmd_and_data(R_DISPLAY_CONTROL, 0x0017);
|
||||
lcd_cmd_and_data(R_DISPLAY_CONTROL, 0x0023);
|
||||
else
|
||||
lcd_cmd_and_data(R_DISPLAY_CONTROL, 0x0015);
|
||||
lcd_cmd_and_data(R_DISPLAY_CONTROL, 0x0009);
|
||||
}
|
||||
|
||||
/* turn the display upside down (call lcd_update() afterwards) */
|
||||
|
|
Loading…
Reference in a new issue