forked from len0rd/rockbox
Moved lcd default contrast knowledge from settings.c to lcd driver. Now lcd_init sets default contrast until settings are read.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3824 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0ef911d43c
commit
067262dbf0
4 changed files with 34 additions and 32 deletions
|
@ -278,6 +278,11 @@ bool lcdx_putc(int x, int y, unsigned short ch)
|
|||
return false;
|
||||
}
|
||||
|
||||
int lcd_default_contrast(void)
|
||||
{
|
||||
return 30;
|
||||
}
|
||||
|
||||
void lcd_clear_display(void)
|
||||
{
|
||||
int i;
|
||||
|
@ -497,6 +502,8 @@ void lcd_init (void)
|
|||
pattern_size=3; /* Last pattern, 3 for old LCD, 7 for new LCD */
|
||||
}
|
||||
|
||||
lcd_set_contrast(lcd_default_contrast());
|
||||
|
||||
create_thread(scroll_thread, scroll_stack,
|
||||
sizeof(scroll_stack), scroll_name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue