From 85d738346aea507294909dc57e65ae5c20f5e25a Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sat, 12 Nov 2005 15:50:40 +0000 Subject: [PATCH] Use the correct call to lcd_set_background() for colour LCDs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7827 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/screens.c b/apps/screens.c index 7ac87ac063..cb4e081ae8 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -930,8 +930,12 @@ void splash(int ticks, /* how long the splash is displayed */ x += w+SPACE; /* pixels space! */ next = strtok_r(NULL, " ", &store); } -#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) - lcd_set_background(LCD_WHITE); +#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_update();