summaryrefslogtreecommitdiff
path: root/apps/plugins/sudoku.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-11-16 21:09:23 +0000
committerJens Arnold <amiconn@rockbox.org>2005-11-16 21:09:23 +0000
commit5b2cba17aa95ececfdb6a498540de4dfa215e920 (patch)
tree3574eab7dc84f588268b72f6db56744fcc4d0e64 /apps/plugins/sudoku.c
parent15046f99b3840c07bdd9d52e7014c6e775267c55 (diff)
downloadrockbox-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/sudoku.c')
-rw-r--r--apps/plugins/sudoku.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/apps/plugins/sudoku.c b/apps/plugins/sudoku.c
index 526416d11e..bab53bbad4 100644
--- a/apps/plugins/sudoku.c
+++ b/apps/plugins/sudoku.c
@@ -362,16 +362,6 @@ static unsigned char num_inverse[10][8]= {
362 #error SUDOKU: Unsupported LCD size 362 #error SUDOKU: Unsupported LCD size
363#endif 363#endif
364 364
365#if LCD_DEPTH > 1
366#if HAVE_LCD_COLOR
367#define LIGHT_GRAY ((struct rgb){2*LCD_MAX_RED/3, 2*LCD_MAX_GREEN/3, 2*LCD_MAX_BLUE/3})
368#define DARK_GRAY ((struct rgb){LCD_MAX_RED/3, LCD_MAX_GREEN/3, LCD_MAX_BLUE/3})
369#else
370#define LIGHT_GRAY (2*LCD_MAX_LEVEL/3)
371#define DARK_GRAY (LCD_MAX_LEVEL/3)
372#endif
373#endif
374
375/* here is a global api struct pointer. while not strictly necessary, 365/* here is a global api struct pointer. while not strictly necessary,
376 it's nice not to have to pass the api pointer in all function calls 366 it's nice not to have to pass the api pointer in all function calls
377 in the plugin */ 367 in the plugin */