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/sokoban.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/sokoban.c')
-rw-r--r-- | apps/plugins/sokoban.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c index 70f616d406..a341cf5416 100644 --- a/apps/plugins/sokoban.c +++ b/apps/plugins/sokoban.c | |||
@@ -59,10 +59,10 @@ | |||
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | #if LCD_DEPTH > 1 | 61 | #if LCD_DEPTH > 1 |
62 | #if HAVE_LCD_COLOR | 62 | #ifdef HAVE_LCD_COLOR |
63 | #define MEDIUM_GRAY ((struct rgb){LCD_MAX_RED/2, LCD_MAX_GREEN/2, LCD_MAX_BLUE/2}) | 63 | #define MEDIUM_GRAY LCD_RGBPACK(127, 127, 127) |
64 | #else | 64 | #else |
65 | #define MEDIUM_GRAY (LCD_MAX_LEVEL/2) | 65 | #define MEDIUM_GRAY LCD_BRIGHTNESS(127) |
66 | #endif | 66 | #endif |
67 | #endif | 67 | #endif |
68 | 68 | ||