summaryrefslogtreecommitdiff
path: root/apps/plugins/jewels.c
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/jewels.c
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/jewels.c')
-rw-r--r--apps/plugins/jewels.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c
index cb4ab88048..dde53a0933 100644
--- a/apps/plugins/jewels.c
+++ b/apps/plugins/jewels.c
@@ -95,7 +95,8 @@ PLUGIN_HEADER
95#define JEWELS_SELECT BUTTON_SELECT 95#define JEWELS_SELECT BUTTON_SELECT
96#define JEWELS_CANCEL BUTTON_POWER 96#define JEWELS_CANCEL BUTTON_POWER
97 97
98#elif CONFIG_KEYPAD == SANSA_E200_PAD 98#elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \
99(CONFIG_KEYPAD == SANSA_C200_PAD)
99#define JEWELS_UP BUTTON_UP 100#define JEWELS_UP BUTTON_UP
100#define JEWELS_DOWN BUTTON_DOWN 101#define JEWELS_DOWN BUTTON_DOWN
101#define JEWELS_LEFT BUTTON_LEFT 102#define JEWELS_LEFT BUTTON_LEFT
@@ -159,6 +160,13 @@ PLUGIN_HEADER
159#define YOFS 6 160#define YOFS 6
160#define NUM_SCORES 10 161#define NUM_SCORES 10
161 162
163+/* use 10x10 tiles (Sansa c200) */
164#elif (LCD_HEIGHT == 80) && (LCD_WIDTH == 132)
165#define TILE_WIDTH 10
166#define TILE_HEIGHT 10
167#define YOFS 0
168#define NUM_SCORES 8
169
162/* use 10x8 tiles (iFP 700) */ 170/* use 10x8 tiles (iFP 700) */
163#elif (LCD_HEIGHT == 64) && (LCD_WIDTH == 128) 171#elif (LCD_HEIGHT == 64) && (LCD_WIDTH == 128)
164#define TILE_WIDTH 10 172#define TILE_WIDTH 10
@@ -1480,7 +1488,8 @@ static int jewels_main(struct game_context* bj) {
1480 rb->lcd_puts(0, 9, "SELECT to select"); 1488 rb->lcd_puts(0, 9, "SELECT to select");
1481 rb->lcd_puts(0, 10, "Long SELECT to show menu"); 1489 rb->lcd_puts(0, 10, "Long SELECT to show menu");
1482 rb->lcd_puts(0, 11, "POWER to cancel"); 1490 rb->lcd_puts(0, 11, "POWER to cancel");
1483#elif CONFIG_KEYPAD == SANSA_E200_PAD 1491#elif CONFIG_KEYPAD == SANSA_E200_PAD \
1492 || CONFIG_KEYPAD == SANSA_C200_PAD
1484 rb->lcd_puts(0, 2, "Swap pairs of jewels to"); 1493 rb->lcd_puts(0, 2, "Swap pairs of jewels to");
1485 rb->lcd_puts(0, 3, "form connected segments"); 1494 rb->lcd_puts(0, 3, "form connected segments");
1486 rb->lcd_puts(0, 4, "of three or more of the"); 1495 rb->lcd_puts(0, 4, "of three or more of the");