From 24f4a2a8cfd561657ce25ebf93470716f07397fe Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Thu, 26 Oct 2006 13:38:09 +0000 Subject: Allow the Sansa e200 UI simulator to be built. Thanks to Andre Smith for the nice image of the Sansa. Lots more to be done including testing and tweaking the keymaps and modifying the plugins for the Sansa's 176x220 LCD. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11351 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/sudoku/SOURCES | 2 ++ apps/plugins/sudoku/sudoku.c | 3 ++- apps/plugins/sudoku/sudoku.h | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'apps/plugins/sudoku') diff --git a/apps/plugins/sudoku/SOURCES b/apps/plugins/sudoku/SOURCES index 7cce555c93..8b344bdfeb 100644 --- a/apps/plugins/sudoku/SOURCES +++ b/apps/plugins/sudoku/SOURCES @@ -1,3 +1,5 @@ +#if !defined(SANSA_E200) sudoku.c generator.c templates.c +#endif diff --git a/apps/plugins/sudoku/sudoku.c b/apps/plugins/sudoku/sudoku.c index 98d11b7962..e1e99bf444 100644 --- a/apps/plugins/sudoku/sudoku.c +++ b/apps/plugins/sudoku/sudoku.c @@ -129,7 +129,8 @@ static const char default_game[9][9] = #define CELL_WIDTH 12 #define CELL_HEIGHT 12 -#elif (LCD_HEIGHT==176) && (LCD_WIDTH==220) +#elif ((LCD_HEIGHT==176) && (LCD_WIDTH==220)) || \ + ((LCD_HEIGHT==220) && (LCD_WIDTH==176)) /* Iriver h300, iPod Color/Photo - 220x176, 9 cells @ 16x16 with 14 border lines */ /* Internal dimensions of a cell */ diff --git a/apps/plugins/sudoku/sudoku.h b/apps/plugins/sudoku/sudoku.h index 761be3a988..fefaf9f57d 100644 --- a/apps/plugins/sudoku/sudoku.h +++ b/apps/plugins/sudoku/sudoku.h @@ -100,6 +100,16 @@ #define SUDOKU_BUTTON_MENU BUTTON_PLAY #define SUDOKU_BUTTON_POSSIBLE BUTTON_FF +#elif (CONFIG_KEYPAD == SANSA_E200_PAD) +#define SUDOKU_BUTTON_QUIT BUTTON_POWER +#define SUDOKU_BUTTON_UP BUTTON_UP +#define SUDOKU_BUTTON_DOWN BUTTON_DOWN +#define SUDOKU_BUTTON_LEFT BUTTON_LEFT +#define SUDOKU_BUTTON_RIGHT BUTTON_RIGHT +#define SUDOKU_BUTTON_TOGGLE BUTTON_SELECT +#define SUDOKU_BUTTON_MENU (BUTTON_SELECT|BUTTON_REPEAT) +#define SUDOKU_BUTTON_POSSIBLE BUTTON_REC + #elif #error SUDOKU: Unsupported keypad #endif -- cgit v1.2.3