diff options
Diffstat (limited to 'apps/plugins/reversi')
-rw-r--r-- | apps/plugins/reversi/reversi-gui.c | 15 | ||||
-rw-r--r-- | apps/plugins/reversi/reversi-gui.h | 9 |
2 files changed, 15 insertions, 9 deletions
diff --git a/apps/plugins/reversi/reversi-gui.c b/apps/plugins/reversi/reversi-gui.c index 6bfa4ae1af..1995923f4f 100644 --- a/apps/plugins/reversi/reversi-gui.c +++ b/apps/plugins/reversi/reversi-gui.c | |||
@@ -75,22 +75,19 @@ static struct plugin_api* rb; | |||
75 | #define CELL_HEIGHT 8 | 75 | #define CELL_HEIGHT 8 |
76 | #define SMALL_BOARD | 76 | #define SMALL_BOARD |
77 | 77 | ||
78 | #elif (LCD_HEIGHT==110) && (LCD_WIDTH==138) | 78 | #elif (LCD_HEIGHT==96) && (LCD_WIDTH==128) \ |
79 | || (LCD_HEIGHT==110) && (LCD_WIDTH==138) \ | ||
80 | || (LCD_HEIGHT==128) && (LCD_WIDTH==128) | ||
81 | /* iAudio M3 - 138x110, 8 cells @ 10x10 with 9 border lines */ | ||
79 | /* iPod Mini - 138x110, 8 cells @ 10x10 with 9 border lines */ | 82 | /* iPod Mini - 138x110, 8 cells @ 10x10 with 9 border lines */ |
80 | |||
81 | /* Internal dimensions of a cell */ | ||
82 | #define CELL_WIDTH 10 | ||
83 | #define CELL_HEIGHT 10 | ||
84 | |||
85 | #elif (LCD_HEIGHT==128) && (LCD_WIDTH==128) | ||
86 | /* iriver H10 5-6GB - 128x128, 8 cells @ 10x10 with 9 border lines */ | 83 | /* iriver H10 5-6GB - 128x128, 8 cells @ 10x10 with 9 border lines */ |
87 | 84 | ||
88 | /* Internal dimensions of a cell */ | 85 | /* Internal dimensions of a cell */ |
89 | #define CELL_WIDTH 10 | 86 | #define CELL_WIDTH 10 |
90 | #define CELL_HEIGHT 10 | 87 | #define CELL_HEIGHT 10 |
91 | 88 | ||
92 | #elif ((LCD_HEIGHT==128) && (LCD_WIDTH==160)) || \ | 89 | #elif ((LCD_HEIGHT==128) && (LCD_WIDTH==160)) \ |
93 | ((LCD_HEIGHT==132) && (LCD_WIDTH==176)) | 90 | || ((LCD_HEIGHT==132) && (LCD_WIDTH==176)) |
94 | /* iAudio X5, Iriver H1x0, iPod G3, G4 - 160x128; */ | 91 | /* iAudio X5, Iriver H1x0, iPod G3, G4 - 160x128; */ |
95 | /* iPod Nano - 176x132, 8 cells @ 12x12 with 9 border lines */ | 92 | /* iPod Nano - 176x132, 8 cells @ 12x12 with 9 border lines */ |
96 | 93 | ||
diff --git a/apps/plugins/reversi/reversi-gui.h b/apps/plugins/reversi/reversi-gui.h index 84552c8fe1..de2286e5df 100644 --- a/apps/plugins/reversi/reversi-gui.h +++ b/apps/plugins/reversi/reversi-gui.h | |||
@@ -123,6 +123,15 @@ | |||
123 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT | 123 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT |
124 | #define REVERSI_BUTTON_MENU BUTTON_MENU | 124 | #define REVERSI_BUTTON_MENU BUTTON_MENU |
125 | 125 | ||
126 | #elif CONFIG_KEYPAD == IAUDIO_M3_PAD | ||
127 | #define REVERSI_BUTTON_QUIT BUTTON_RC_REC | ||
128 | #define REVERSI_BUTTON_UP BUTTON_RC_VOL_UP | ||
129 | #define REVERSI_BUTTON_DOWN BUTTON_RC_VOL_DOWN | ||
130 | #define REVERSI_BUTTON_LEFT BUTTON_RC_REW | ||
131 | #define REVERSI_BUTTON_RIGHT BUTTON_RC_FF | ||
132 | #define REVERSI_BUTTON_MAKE_MOVE BUTTON_RC_PLAY | ||
133 | #define REVERSI_BUTTON_MENU BUTTON_RC_MENU | ||
134 | |||
126 | #else | 135 | #else |
127 | #error No keymap defined! | 136 | #error No keymap defined! |
128 | #endif | 137 | #endif |