summaryrefslogtreecommitdiff
path: root/apps/plugins/sudoku
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sudoku')
-rw-r--r--apps/plugins/sudoku/SOURCES2
-rw-r--r--apps/plugins/sudoku/sudoku.c12
-rw-r--r--apps/plugins/sudoku/sudoku.h5
3 files changed, 12 insertions, 7 deletions
diff --git a/apps/plugins/sudoku/SOURCES b/apps/plugins/sudoku/SOURCES
index 8b344bdfeb..7cce555c93 100644
--- a/apps/plugins/sudoku/SOURCES
+++ b/apps/plugins/sudoku/SOURCES
@@ -1,5 +1,3 @@
1#if !defined(SANSA_E200)
2sudoku.c 1sudoku.c
3generator.c 2generator.c
4templates.c 3templates.c
5#endif
diff --git a/apps/plugins/sudoku/sudoku.c b/apps/plugins/sudoku/sudoku.c
index 9a3a147889..218a544f8c 100644
--- a/apps/plugins/sudoku/sudoku.c
+++ b/apps/plugins/sudoku/sudoku.c
@@ -129,8 +129,7 @@ static const char default_game[9][9] =
129#define CELL_WIDTH 12 129#define CELL_WIDTH 12
130#define CELL_HEIGHT 12 130#define CELL_HEIGHT 12
131 131
132#elif ((LCD_HEIGHT==176) && (LCD_WIDTH==220)) || \ 132#elif ((LCD_HEIGHT==176) && (LCD_WIDTH==220))
133 ((LCD_HEIGHT==220) && (LCD_WIDTH==176))
134/* Iriver h300, iPod Color/Photo - 220x176, 9 cells @ 16x16 with 14 border lines */ 133/* Iriver h300, iPod Color/Photo - 220x176, 9 cells @ 16x16 with 14 border lines */
135 134
136/* Internal dimensions of a cell */ 135/* Internal dimensions of a cell */
@@ -151,7 +150,14 @@ static const char default_game[9][9] =
151#else /* Vertical layout, scratchpad at the bottom */ 150#else /* Vertical layout, scratchpad at the bottom */
152#define VERTICAL_LAYOUT 151#define VERTICAL_LAYOUT
153 152
154#if (LCD_HEIGHT>=320) && (LCD_WIDTH>=240) 153#if ((LCD_HEIGHT==220) && (LCD_WIDTH==176))
154/* e200, 9 cells @ 16x16 with 14 border lines */
155
156/* Internal dimensions of a cell */
157#define CELL_WIDTH 16
158#define CELL_HEIGHT 16
159
160#elif (LCD_HEIGHT>=320) && (LCD_WIDTH>=240)
155/* Gigabeat - 240x320, 9 cells @ 24x24 with 14 border lines */ 161/* Gigabeat - 240x320, 9 cells @ 24x24 with 14 border lines */
156 162
157/* Internal dimensions of a cell */ 163/* Internal dimensions of a cell */
diff --git a/apps/plugins/sudoku/sudoku.h b/apps/plugins/sudoku/sudoku.h
index 2628e3254f..04923be18e 100644
--- a/apps/plugins/sudoku/sudoku.h
+++ b/apps/plugins/sudoku/sudoku.h
@@ -116,8 +116,9 @@
116#define SUDOKU_BUTTON_DOWN BUTTON_DOWN 116#define SUDOKU_BUTTON_DOWN BUTTON_DOWN
117#define SUDOKU_BUTTON_LEFT BUTTON_LEFT 117#define SUDOKU_BUTTON_LEFT BUTTON_LEFT
118#define SUDOKU_BUTTON_RIGHT BUTTON_RIGHT 118#define SUDOKU_BUTTON_RIGHT BUTTON_RIGHT
119#define SUDOKU_BUTTON_TOGGLE BUTTON_SELECT 119#define SUDOKU_BUTTON_TOGGLEBACK BUTTON_SCROLL_UP
120#define SUDOKU_BUTTON_MENU (BUTTON_SELECT|BUTTON_REPEAT) 120#define SUDOKU_BUTTON_TOGGLE BUTTON_SCROLL_DOWN
121#define SUDOKU_BUTTON_MENU BUTTON_SELECT
121#define SUDOKU_BUTTON_POSSIBLE BUTTON_REC 122#define SUDOKU_BUTTON_POSSIBLE BUTTON_REC
122 123
123#elif 124#elif