summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-11-12 15:50:40 +0000
committerDave Chapman <dave@dchapman.com>2005-11-12 15:50:40 +0000
commit85d738346aea507294909dc57e65ae5c20f5e25a (patch)
treeed980fae3ea08ef0fb4ec3a417dee55f379e269e
parente12f7973112580b7f553c0a518187d2084b95972 (diff)
downloadrockbox-85d738346aea507294909dc57e65ae5c20f5e25a.zip
rockbox-85d738346aea507294909dc57e65ae5c20f5e25a.tar.gz
rockbox-85d738346aea507294909dc57e65ae5c20f5e25a.tar.bz2
rockbox-85d738346aea507294909dc57e65ae5c20f5e25a.tar.xz
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
-rw-r--r--apps/screens.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 7ac87ac..cb4e081 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();