forked from len0rd/rockbox
Fix compile error on iPod build - RGB_PACK resolves to a function on the iPod, so can't be used in an initialiser.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7882 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b6c0f95960
commit
ae7c55c12c
1 changed files with 5 additions and 2 deletions
|
@ -39,8 +39,8 @@
|
||||||
/*** globals ***/
|
/*** globals ***/
|
||||||
fb_data lcd_framebuffer[LCD_HEIGHT][LCD_WIDTH] __attribute__ ((aligned (2)));
|
fb_data lcd_framebuffer[LCD_HEIGHT][LCD_WIDTH] __attribute__ ((aligned (2)));
|
||||||
|
|
||||||
static unsigned fg_pattern = 0x0000; /* Black */
|
static unsigned fg_pattern;
|
||||||
static unsigned bg_pattern = RGB_PACK(0xb6, 0xc6, 0xe5); /* "Rockbox blue" */
|
static unsigned bg_pattern;
|
||||||
static int drawmode = DRMODE_SOLID;
|
static int drawmode = DRMODE_SOLID;
|
||||||
static int xmargin = 0;
|
static int xmargin = 0;
|
||||||
static int ymargin = 0;
|
static int ymargin = 0;
|
||||||
|
@ -66,6 +66,9 @@ static const char scroll_tick_table[16] = {
|
||||||
/* LCD init */
|
/* LCD init */
|
||||||
void lcd_init(void)
|
void lcd_init(void)
|
||||||
{
|
{
|
||||||
|
fg_pattern = 0x0000; /* Black */
|
||||||
|
bg_pattern = RGB_PACK(0xb6, 0xc6, 0xe5); /* "Rockbox blue" */
|
||||||
|
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
/* Call device specific init */
|
/* Call device specific init */
|
||||||
lcd_init_device();
|
lcd_init_device();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue