diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-07-19 10:33:41 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-07-19 10:33:41 +0000 |
| commit | b0e056b5aeaac668312cbf67ee9c9d1713704b05 (patch) | |
| tree | e0db08c1723c11b82191366ca3930046f5f1f34b /apps/plugins/cube.c | |
| parent | 82ea7c3bacd0b5308e7f0b1d8f35a4e3e13e54f7 (diff) | |
| download | rockbox-b0e056b5aeaac668312cbf67ee9c9d1713704b05.zip rockbox-b0e056b5aeaac668312cbf67ee9c9d1713704b05.tar.gz rockbox-b0e056b5aeaac668312cbf67ee9c9d1713704b05.tar.bz2 rockbox-b0e056b5aeaac668312cbf67ee9c9d1713704b05.tar.xz | |
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/plugins/cube.c')
| -rw-r--r-- | apps/plugins/cube.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c index afb2b88..e69ef46 100644 --- a/apps/plugins/cube.c +++ b/apps/plugins/cube.c @@ -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 */ |