diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-11-16 21:09:23 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-11-16 21:09:23 +0000 |
commit | 5b2cba17aa95ececfdb6a498540de4dfa215e920 (patch) | |
tree | 3574eab7dc84f588268b72f6db56744fcc4d0e64 /apps/plugins/cube.c | |
parent | 15046f99b3840c07bdd9d52e7014c6e775267c55 (diff) | |
download | rockbox-5b2cba17aa95ececfdb6a498540de4dfa215e920.tar.gz rockbox-5b2cba17aa95ececfdb6a498540de4dfa215e920.zip |
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/plugins/cube.c')
-rw-r--r-- | apps/plugins/cube.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c index 2360269aba..dc5b5706f4 100644 --- a/apps/plugins/cube.c +++ b/apps/plugins/cube.c | |||
@@ -152,18 +152,16 @@ static const struct face faces[6] = | |||
152 | }; | 152 | }; |
153 | 153 | ||
154 | #if LCD_DEPTH > 1 | 154 | #if LCD_DEPTH > 1 |
155 | #ifdef HAVE_LCD_COLOR | 155 | static const unsigned face_colors[6] = |
156 | static const struct rgb face_colors[6] = | ||
157 | { | 156 | { |
158 | {LCD_MAX_RED, 0, 0}, {LCD_MAX_RED, 0, 0}, {0, LCD_MAX_GREEN, 0}, | 157 | #ifdef HAVE_LCD_COLOR |
159 | {0, LCD_MAX_GREEN, 0}, {0, 0, LCD_MAX_BLUE}, {0, 0, LCD_MAX_BLUE} | 158 | LCD_RGBPACK(255, 0, 0), LCD_RGBPACK(255, 0, 0), LCD_RGBPACK(0, 255, 0), |
160 | }; | 159 | LCD_RGBPACK(0, 255, 0), LCD_RGBPACK(0, 0, 255), LCD_RGBPACK(0, 0, 255) |
161 | #else | 160 | #else |
162 | static const int face_colors[6] = | 161 | LCD_LIGHTGRAY, LCD_LIGHTGRAY, LCD_DARKGRAY, |
163 | { | 162 | LCD_DARKGRAY, LCD_BLACK, LCD_BLACK |
164 | 2*LCD_MAX_LEVEL/3, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, 0, 0 | ||
165 | }; | ||
166 | #endif | 163 | #endif |
164 | }; | ||
167 | #endif | 165 | #endif |
168 | 166 | ||
169 | enum { | 167 | enum { |