mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Use LCD_WHITE macro - this is defined for both greyscale and colour LCDs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7831 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
64e5239b4c
commit
d22994c79b
1 changed files with 2 additions and 10 deletions
|
|
@ -879,11 +879,7 @@ void splash(int ticks, /* how long the splash is displayed */
|
||||||
int xx = (LCD_WIDTH-maxw)/2 - 2;
|
int xx = (LCD_WIDTH-maxw)/2 - 2;
|
||||||
/* The new graphics routines handle clipping, so no need to check */
|
/* The new graphics routines handle clipping, so no need to check */
|
||||||
#if LCD_DEPTH > 1
|
#if LCD_DEPTH > 1
|
||||||
#ifdef HAVE_LCD_COLOR
|
lcd_set_background(LCD_WHITE);
|
||||||
lcd_set_background((struct rgb){LCD_MAX_RED-1, LCD_MAX_GREEN-1, LCD_MAX_BLUE-1});
|
|
||||||
#else
|
|
||||||
lcd_set_background(LCD_MAX_LEVEL-1);
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
|
lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
|
||||||
lcd_fillrect(xx, y-2, maxw+4, LCD_HEIGHT-y*2+4);
|
lcd_fillrect(xx, y-2, maxw+4, LCD_HEIGHT-y*2+4);
|
||||||
|
|
@ -931,11 +927,7 @@ void splash(int ticks, /* how long the splash is displayed */
|
||||||
next = strtok_r(NULL, " ", &store);
|
next = strtok_r(NULL, " ", &store);
|
||||||
}
|
}
|
||||||
#if LCD_DEPTH > 1
|
#if LCD_DEPTH > 1
|
||||||
#ifdef HAVE_LCD_COLOR
|
lcd_set_background(LCD_WHITE);
|
||||||
lcd_set_background((struct rgb){LCD_MAX_RED-1, LCD_MAX_GREEN-1, LCD_MAX_BLUE-1});
|
|
||||||
#else
|
|
||||||
lcd_set_background(LCD_MAX_LEVEL-1);
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
lcd_update();
|
lcd_update();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue