summaryrefslogtreecommitdiff
path: root/apps/gui/splash.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-11-16 21:09:23 +0000
committerJens Arnold <amiconn@rockbox.org>2005-11-16 21:09:23 +0000
commit5b2cba17aa95ececfdb6a498540de4dfa215e920 (patch)
tree3574eab7dc84f588268b72f6db56744fcc4d0e64 /apps/gui/splash.c
parent15046f99b3840c07bdd9d52e7014c6e775267c55 (diff)
Changed the LCD_COLOR pixel value format to packed RGB (unsigned int). Now all LCDs with depth > 1 use the same datatype. Added macros for easy pixel value definition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7912 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/splash.c')
-rw-r--r--apps/gui/splash.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/gui/splash.c b/apps/gui/splash.c
index fc15294211..8d69068d3b 100644
--- a/apps/gui/splash.c
+++ b/apps/gui/splash.c
@@ -127,13 +127,8 @@ void internal_splash(struct screen * screen,
int xx = (screen->width-maxw)/2 - 2;
/* The new graphics routines handle clipping, so no need to check */
#if LCD_DEPTH > 1
-#ifdef HAVE_LCD_COLOR
- screen->set_background((struct rgb){LCD_MAX_RED-1, LCD_MAX_GREEN-1,
- LCD_MAX_BLUE-1});
-#else
if(screen->depth>1)
- screen->set_background(LCD_MAX_LEVEL-1);
-#endif
+ screen->set_background(LCD_LIGHTGRAY);
#endif
screen->set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
screen->fillrect(xx, y-2, maxw+4, screen->height-y*2+4);
@@ -183,7 +178,7 @@ void internal_splash(struct screen * screen,
#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1)
if(screen->depth > 1)
- screen->set_background(LCD_WHITE);
+ screen->set_background(LCD_DEFAULT_BG);
#endif
#if defined(HAVE_LCD_BITMAP) || defined(SIMULATOR)
screen->update();