From b0e056b5aeaac668312cbf67ee9c9d1713704b05 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 19 Jul 2005 10:33:41 +0000 Subject: More preparations and conversions for colour LCD support. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7195 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/screens.c') diff --git a/apps/screens.c b/apps/screens.c index a51d83fed3..19afe44baa 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -855,7 +855,11 @@ 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 #endif lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); lcd_fillrect(xx, y-2, maxw+4, LCD_HEIGHT-y*2+4); @@ -903,7 +907,7 @@ void splash(int ticks, /* how long the splash is displayed */ next = strtok_r(NULL, " ", &store); } #if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) - lcd_set_background(LCD_MAX_LEVEL); + lcd_set_background(LCD_WHITE); #endif lcd_update(); -- cgit v1.2.3