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:
Dave Chapman 2005-11-12 18:40:43 +00:00
parent 64e5239b4c
commit d22994c79b

View file

@ -879,11 +879,7 @@ void splash(int ticks, /* how long the splash is displayed */
int xx = (LCD_WIDTH-maxw)/2 - 2;
/* The new graphics routines handle clipping, so no need to check */
#if LCD_DEPTH > 1
#ifdef HAVE_LCD_COLOR
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
lcd_set_background(LCD_WHITE);
#endif
lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
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);
}
#if LCD_DEPTH > 1
#ifdef HAVE_LCD_COLOR
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
lcd_set_background(LCD_WHITE);
#endif
lcd_update();