summaryrefslogtreecommitdiff
path: root/apps/plugins/sudoku
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-03-22 14:20:04 +0000
committerJens Arnold <amiconn@rockbox.org>2008-03-22 14:20:04 +0000
commit106ac75ad8229d4c5f66a846609520d22d9d8f0c (patch)
treedefc6786b833bbef4f589070814eee59a8567ba8 /apps/plugins/sudoku
parent95d8590659602080acc7d25f49e7b24b429aa5af (diff)
downloadrockbox-106ac75ad8229d4c5f66a846609520d22d9d8f0c.tar.gz
rockbox-106ac75ad8229d4c5f66a846609520d22d9d8f0c.zip
Adapted most multi-source plugins to the iAudio M3 keypad and screen. Doom and mpegplayer are disabled because of the not yet implemented greyscale library, and zxbox used 2-bit greyscale for now. * Slight optimisation for the (currently unused except on M3) 2-bit greyscale code in zxbox. * Simplified button definitions in chessbox.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16744 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/sudoku')
-rw-r--r--apps/plugins/sudoku/sudoku.c16
-rw-r--r--apps/plugins/sudoku/sudoku.h10
2 files changed, 19 insertions, 7 deletions
diff --git a/apps/plugins/sudoku/sudoku.c b/apps/plugins/sudoku/sudoku.c
index 1d548ace6d..553357fc5c 100644
--- a/apps/plugins/sudoku/sudoku.c
+++ b/apps/plugins/sudoku/sudoku.c
@@ -116,22 +116,24 @@ static const char default_game[9][9] =
116#define CELL_HEIGHT 8 116#define CELL_HEIGHT 8
117#define SMALL_BOARD 117#define SMALL_BOARD
118 118
119#elif (LCD_HEIGHT==110) && (LCD_WIDTH==138) 119#elif ((LCD_HEIGHT==96) && (LCD_WIDTH==128))
120/* iPod Mini - 138x110, 9 cells @ 10x10 with 14 border lines */ 120/* iAudio M3, 9 cells @ 9x9 with 14 border lines */
121 121
122/* Internal dimensions of a cell */ 122/* Internal dimensions of a cell */
123#define CELL_WIDTH 10 123#define CELL_WIDTH 9
124#define CELL_HEIGHT 10 124#define CELL_HEIGHT 9
125 125
126#elif (LCD_HEIGHT==128) && (LCD_WIDTH==128) 126#elif (LCD_HEIGHT==110) && (LCD_WIDTH==138) \
127 || (LCD_HEIGHT==128) && (LCD_WIDTH==128)
128/* iPod Mini - 138x110, 9 cells @ 10x10 with 14 border lines */
127/* iriver H10 5-6GB - 128x128, 9 cells @ 10x10 with 14 border lines */ 129/* iriver H10 5-6GB - 128x128, 9 cells @ 10x10 with 14 border lines */
128 130
129/* Internal dimensions of a cell */ 131/* Internal dimensions of a cell */
130#define CELL_WIDTH 10 132#define CELL_WIDTH 10
131#define CELL_HEIGHT 10 133#define CELL_HEIGHT 10
132 134
133#elif ((LCD_HEIGHT==128) && (LCD_WIDTH==160)) || \ 135#elif ((LCD_HEIGHT==128) && (LCD_WIDTH==160)) \
134 ((LCD_HEIGHT==132) && (LCD_WIDTH==176)) 136 || ((LCD_HEIGHT==132) && (LCD_WIDTH==176))
135/* iAudio X5, Iriver H1x0, iPod G3, G4 - 160x128; */ 137/* iAudio X5, Iriver H1x0, iPod G3, G4 - 160x128; */
136/* iPod Nano - 176x132, 9 cells @ 12x12 with 14 border lines */ 138/* iPod Nano - 176x132, 9 cells @ 12x12 with 14 border lines */
137 139
diff --git a/apps/plugins/sudoku/sudoku.h b/apps/plugins/sudoku/sudoku.h
index 78d1b73e63..8c2759796a 100644
--- a/apps/plugins/sudoku/sudoku.h
+++ b/apps/plugins/sudoku/sudoku.h
@@ -160,6 +160,16 @@
160#define SUDOKU_BUTTON_MENU BUTTON_MENU 160#define SUDOKU_BUTTON_MENU BUTTON_MENU
161#define SUDOKU_BUTTON_POSSIBLE BUTTON_DISPLAY 161#define SUDOKU_BUTTON_POSSIBLE BUTTON_DISPLAY
162 162
163#elif CONFIG_KEYPAD == IAUDIO_M3_PAD
164#define SUDOKU_BUTTON_QUIT BUTTON_RC_REC
165#define SUDOKU_BUTTON_UP BUTTON_RC_VOL_UP
166#define SUDOKU_BUTTON_DOWN BUTTON_RC_VOL_DOWN
167#define SUDOKU_BUTTON_LEFT BUTTON_RC_REW
168#define SUDOKU_BUTTON_RIGHT BUTTON_RC_FF
169#define SUDOKU_BUTTON_TOGGLE BUTTON_RC_MODE
170#define SUDOKU_BUTTON_MENU BUTTON_RC_MENU
171#define SUDOKU_BUTTON_POSSIBLE BUTTON_RC_PLAY
172
163#else 173#else
164#error No keymap defined! 174#error No keymap defined!
165#endif 175#endif