1
0
Fork 0
forked from len0rd/rockbox

More preparations and conversions for colour LCD support.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7195 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-07-19 10:33:41 +00:00
parent 82ea7c3bac
commit b0e056b5ae
6 changed files with 39 additions and 10 deletions

View file

@ -152,11 +152,19 @@ static const struct face faces[6] =
};
#if LCD_DEPTH > 1
static const int face_colors[6] =
#ifdef HAVE_LCD_COLOR
static const struct rgb face_colors[6] =
{
{LCD_MAX_RED, 0, 0}, {LCD_MAX_RED, 0, 0}, {0, LCD_MAX_GREEN, 0},
{0, LCD_MAX_GREEN, 0}, {0, 0, LCD_MAX_BLUE}, {0, 0, LCD_MAX_BLUE}
};
#else
static const int face_colors[6] =
{
2*LCD_MAX_LEVEL/3, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, 0, 0
};
#endif
#endif
enum {
#if LCD_DEPTH > 1
@ -352,7 +360,7 @@ static void cube_draw(void)
point2D[faces[i].corner[3]].y);
}
rb->lcd_set_foreground(0);
rb->lcd_set_foreground(LCD_BLACK);
break;
#endif /* LCD_DEPTH > 1 */