summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-07-19 10:33:41 +0000
committerJens Arnold <amiconn@rockbox.org>2005-07-19 10:33:41 +0000
commitb0e056b5aeaac668312cbf67ee9c9d1713704b05 (patch)
treee0db08c1723c11b82191366ca3930046f5f1f34b /apps/screens.c
parent82ea7c3bacd0b5308e7f0b1d8f35a4e3e13e54f7 (diff)
downloadrockbox-b0e056b5aeaac668312cbf67ee9c9d1713704b05.tar.gz
rockbox-b0e056b5aeaac668312cbf67ee9c9d1713704b05.zip
More preparations and conversions for colour LCD support.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7195 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/screens.c b/apps/screens.c
index a51d83fed3..19afe44baa 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -855,8 +855,12 @@ void splash(int ticks, /* how long the splash is displayed */
855 int xx = (LCD_WIDTH-maxw)/2 - 2; 855 int xx = (LCD_WIDTH-maxw)/2 - 2;
856 /* The new graphics routines handle clipping, so no need to check */ 856 /* The new graphics routines handle clipping, so no need to check */
857#if LCD_DEPTH > 1 857#if LCD_DEPTH > 1
858#ifdef HAVE_LCD_COLOR
859 lcd_set_background((struct rgb){LCD_MAX_RED-1, LCD_MAX_GREEN-1, LCD_MAX_BLUE-1});
860#else
858 lcd_set_background(LCD_MAX_LEVEL-1); 861 lcd_set_background(LCD_MAX_LEVEL-1);
859#endif 862#endif
863#endif
860 lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); 864 lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
861 lcd_fillrect(xx, y-2, maxw+4, LCD_HEIGHT-y*2+4); 865 lcd_fillrect(xx, y-2, maxw+4, LCD_HEIGHT-y*2+4);
862 lcd_set_drawmode(DRMODE_SOLID); 866 lcd_set_drawmode(DRMODE_SOLID);
@@ -903,7 +907,7 @@ void splash(int ticks, /* how long the splash is displayed */
903 next = strtok_r(NULL, " ", &store); 907 next = strtok_r(NULL, " ", &store);
904 } 908 }
905#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) 909#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1)
906 lcd_set_background(LCD_MAX_LEVEL); 910 lcd_set_background(LCD_WHITE);
907#endif 911#endif
908 lcd_update(); 912 lcd_update();
909 913