summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-11-13 16:16:18 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-11-13 16:16:18 +0000
commit36d7bbbb4e605f1df373282fbbcb3cfb0e15b464 (patch)
tree3b7538a3321bc6305f893116a07cf431de339f8e
parent86e8f6ad233d613b2ab6347e6ae4e83a00eae3d5 (diff)
downloadrockbox-36d7bbbb4e605f1df373282fbbcb3cfb0e15b464.tar.gz
rockbox-36d7bbbb4e605f1df373282fbbcb3cfb0e15b464.zip
Sansa clip zip: make more plugins compile (lamp, wormlet, matrix)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30974 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/lamp.c6
-rw-r--r--apps/plugins/matrix.c6
-rw-r--r--apps/plugins/wormlet.c7
3 files changed, 18 insertions, 1 deletions
diff --git a/apps/plugins/lamp.c b/apps/plugins/lamp.c
index f95516e384..7389811a59 100644
--- a/apps/plugins/lamp.c
+++ b/apps/plugins/lamp.c
@@ -140,6 +140,12 @@
140# define LAMP_UP BUTTON_UP 140# define LAMP_UP BUTTON_UP
141# define LAMP_DOWN BUTTON_DOWN 141# define LAMP_DOWN BUTTON_DOWN
142 142
143#elif CONFIG_KEYPAD == SANSA_CLIP_PAD
144# define LAMP_LEFT BUTTON_LEFT
145# define LAMP_RIGHT BUTTON_RIGHT
146# define LAMP_UP BUTTON_UP
147# define LAMP_DOWN BUTTON_DOWN
148
143#else 149#else
144# error Missing key definitions for this keypad 150# error Missing key definitions for this keypad
145#endif 151#endif
diff --git a/apps/plugins/matrix.c b/apps/plugins/matrix.c
index 04601f6d9e..d1a672cd96 100644
--- a/apps/plugins/matrix.c
+++ b/apps/plugins/matrix.c
@@ -175,6 +175,12 @@ CONFIG_KEYPAD == MROBE500_PAD
175#define MATRIX_SLEEP_LESS BUTTON_DOWN 175#define MATRIX_SLEEP_LESS BUTTON_DOWN
176#define MATRIX_PAUSE BUTTON_PLAYPAUSE 176#define MATRIX_PAUSE BUTTON_PLAYPAUSE
177 177
178#elif CONFIG_KEYPAD == SANSA_CLIP_PAD
179#define MATRIX_EXIT BUTTON_POWER
180#define MATRIX_SLEEP_MORE BUTTON_UP
181#define MATRIX_SLEEP_LESS BUTTON_DOWN
182#define MATRIX_PAUSE BUTTON_SELECT
183
178#else 184#else
179#error Unsupported keypad 185#error Unsupported keypad
180#endif 186#endif
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index d3fbbdcf2d..bb3526991d 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -338,7 +338,12 @@ CONFIG_KEYPAD == MROBE500_PAD
338#endif 338#endif
339#endif 339#endif
340 340
341#if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) 341#if (LCD_WIDTH == 96) && (LCD_HEIGHT == 96)
342#define FOOD_SIZE 3
343#define ARGH_SIZE 4
344#define SPEED 14
345#define MAX_WORM_SEGMENTS 128
346#elif (LCD_WIDTH == 112) && (LCD_HEIGHT == 64)
342#define FOOD_SIZE 3 347#define FOOD_SIZE 3
343#define ARGH_SIZE 4 348#define ARGH_SIZE 4
344#define SPEED 14 349#define SPEED 14