From 5b2cba17aa95ececfdb6a498540de4dfa215e920 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 16 Nov 2005 21:09:23 +0000 Subject: 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 --- apps/gui/splash.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'apps/gui') 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(); -- cgit v1.2.3