summaryrefslogtreecommitdiff
path: root/apps/plugins/reversi
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2007-09-20 10:49:48 +0000
committerMarianne Arnold <pixelma@rockbox.org>2007-09-20 10:49:48 +0000
commit12ddb8ea0d8dbaa38703c37551fcd5c5267819e6 (patch)
treee679031afc87caf181d21cce816aff540d4a5cb0 /apps/plugins/reversi
parent7b71787bd8dc1f570d2270a312438f86b66e3456 (diff)
downloadrockbox-12ddb8ea0d8dbaa38703c37551fcd5c5267819e6.tar.gz
rockbox-12ddb8ea0d8dbaa38703c37551fcd5c5267819e6.zip
Enable plugins on the Sansa C200. Large parts taken from patch FS#7749 by Max Kelley with tweaks, bit of cleanup and additional bitmaps by me. Some of the now enabled plugins could still be improved in regard to screen size adaptation or keymaps but this way it can easily be done later and one by one. The rather ugly 'ifndef's I added temporaryly in plugins/SOURCES will also go one by one. Plugin button actions cause some quirks in a few plugins (e.g. 'clock') but since it's not critical , the bitmaps were already done and it makes a good example for discussing plugin button actions, I thought it could go in.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14771 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/reversi')
-rw-r--r--apps/plugins/reversi/reversi-gui.c8
-rw-r--r--apps/plugins/reversi/reversi-gui.h3
2 files changed, 10 insertions, 1 deletions
diff --git a/apps/plugins/reversi/reversi-gui.c b/apps/plugins/reversi/reversi-gui.c
index 374cc0f151..f99f616668 100644
--- a/apps/plugins/reversi/reversi-gui.c
+++ b/apps/plugins/reversi/reversi-gui.c
@@ -67,6 +67,14 @@ static struct plugin_api* rb;
67#define CELL_HEIGHT 6 67#define CELL_HEIGHT 6
68#define SMALL_BOARD 68#define SMALL_BOARD
69 69
70#elif (LCD_HEIGHT==80) && (LCD_WIDTH==132)
71/* Sansa C200 - 132x80, 8 cells @ 9x9 with 9 border lines */
72
73/* Internal dimensions of a cell */
74#define CELL_WIDTH 8
75#define CELL_HEIGHT 8
76#define SMALL_BOARD
77
70#elif (LCD_HEIGHT==110) && (LCD_WIDTH==138) 78#elif (LCD_HEIGHT==110) && (LCD_WIDTH==138)
71/* iPod Mini - 138x110, 8 cells @ 10x10 with 9 border lines */ 79/* iPod Mini - 138x110, 8 cells @ 10x10 with 9 border lines */
72 80
diff --git a/apps/plugins/reversi/reversi-gui.h b/apps/plugins/reversi/reversi-gui.h
index b82e40d275..5543ea8fd6 100644
--- a/apps/plugins/reversi/reversi-gui.h
+++ b/apps/plugins/reversi/reversi-gui.h
@@ -95,7 +95,8 @@
95#define REVERSI_BUTTON_MAKE_MOVE BUTTON_REW 95#define REVERSI_BUTTON_MAKE_MOVE BUTTON_REW
96#define REVERSI_BUTTON_MENU BUTTON_PLAY 96#define REVERSI_BUTTON_MENU BUTTON_PLAY
97 97
98#elif (CONFIG_KEYPAD == SANSA_E200_PAD) 98#elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \
99(CONFIG_KEYPAD == SANSA_C200_PAD)
99#define REVERSI_BUTTON_QUIT BUTTON_POWER 100#define REVERSI_BUTTON_QUIT BUTTON_POWER
100#define REVERSI_BUTTON_UP BUTTON_UP 101#define REVERSI_BUTTON_UP BUTTON_UP
101#define REVERSI_BUTTON_DOWN BUTTON_DOWN 102#define REVERSI_BUTTON_DOWN BUTTON_DOWN