diff options
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 afb2b88628..e69ef46c80 100644 --- a/apps/plugins/cube.c +++ b/apps/plugins/cube.c | |||
@@ -152,11 +152,19 @@ static const struct face faces[6] = | |||
152 | }; | 152 | }; |
153 | 153 | ||
154 | #if LCD_DEPTH > 1 | 154 | #if LCD_DEPTH > 1 |
155 | static const int face_colors[6] = | 155 | #ifdef HAVE_LCD_COLOR |
156 | static const struct rgb face_colors[6] = | ||
157 | { | ||
158 | {LCD_MAX_RED, 0, 0}, {LCD_MAX_RED, 0, 0}, {0, LCD_MAX_GREEN, 0}, | ||
159 | {0, LCD_MAX_GREEN, 0}, {0, 0, LCD_MAX_BLUE}, {0, 0, LCD_MAX_BLUE} | ||
160 | }; | ||
161 | #else | ||
162 | static const int face_colors[6] = | ||
156 | { | 163 | { |
157 | 2*LCD_MAX_LEVEL/3, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, 0, 0 | 164 | 2*LCD_MAX_LEVEL/3, 2*LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, LCD_MAX_LEVEL/3, 0, 0 |
158 | }; | 165 | }; |
159 | #endif | 166 | #endif |
167 | #endif | ||
160 | 168 | ||
161 | enum { | 169 | enum { |
162 | #if LCD_DEPTH > 1 | 170 | #if LCD_DEPTH > 1 |
@@ -352,7 +360,7 @@ static void cube_draw(void) | |||
352 | point2D[faces[i].corner[3]].y); | 360 | point2D[faces[i].corner[3]].y); |
353 | 361 | ||
354 | } | 362 | } |
355 | rb->lcd_set_foreground(0); | 363 | rb->lcd_set_foreground(LCD_BLACK); |
356 | break; | 364 | break; |
357 | #endif /* LCD_DEPTH > 1 */ | 365 | #endif /* LCD_DEPTH > 1 */ |
358 | 366 | ||