From 106ac75ad8229d4c5f66a846609520d22d9d8f0c Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 22 Mar 2008 14:20:04 +0000 Subject: 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 --- apps/plugins/reversi/reversi-gui.c | 15 ++++++--------- apps/plugins/reversi/reversi-gui.h | 9 +++++++++ 2 files changed, 15 insertions(+), 9 deletions(-) (limited to 'apps/plugins/reversi') 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; #define CELL_HEIGHT 8 #define SMALL_BOARD -#elif (LCD_HEIGHT==110) && (LCD_WIDTH==138) +#elif (LCD_HEIGHT==96) && (LCD_WIDTH==128) \ + || (LCD_HEIGHT==110) && (LCD_WIDTH==138) \ + || (LCD_HEIGHT==128) && (LCD_WIDTH==128) +/* iAudio M3 - 138x110, 8 cells @ 10x10 with 9 border lines */ /* iPod Mini - 138x110, 8 cells @ 10x10 with 9 border lines */ - -/* Internal dimensions of a cell */ -#define CELL_WIDTH 10 -#define CELL_HEIGHT 10 - -#elif (LCD_HEIGHT==128) && (LCD_WIDTH==128) /* iriver H10 5-6GB - 128x128, 8 cells @ 10x10 with 9 border lines */ /* Internal dimensions of a cell */ #define CELL_WIDTH 10 #define CELL_HEIGHT 10 -#elif ((LCD_HEIGHT==128) && (LCD_WIDTH==160)) || \ - ((LCD_HEIGHT==132) && (LCD_WIDTH==176)) +#elif ((LCD_HEIGHT==128) && (LCD_WIDTH==160)) \ + || ((LCD_HEIGHT==132) && (LCD_WIDTH==176)) /* iAudio X5, Iriver H1x0, iPod G3, G4 - 160x128; */ /* iPod Nano - 176x132, 8 cells @ 12x12 with 9 border lines */ 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 @@ #define REVERSI_BUTTON_MAKE_MOVE BUTTON_SELECT #define REVERSI_BUTTON_MENU BUTTON_MENU +#elif CONFIG_KEYPAD == IAUDIO_M3_PAD +#define REVERSI_BUTTON_QUIT BUTTON_RC_REC +#define REVERSI_BUTTON_UP BUTTON_RC_VOL_UP +#define REVERSI_BUTTON_DOWN BUTTON_RC_VOL_DOWN +#define REVERSI_BUTTON_LEFT BUTTON_RC_REW +#define REVERSI_BUTTON_RIGHT BUTTON_RC_FF +#define REVERSI_BUTTON_MAKE_MOVE BUTTON_RC_PLAY +#define REVERSI_BUTTON_MENU BUTTON_RC_MENU + #else #error No keymap defined! #endif -- cgit v1.2.3