summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/SOURCES7
-rw-r--r--apps/plugins/wormlet.c17
2 files changed, 10 insertions, 14 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index 53533be..d89a524 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -33,10 +33,6 @@ plasma.c
bejeweled.c
bounce.c
-#if (CONFIG_KEYPAD != IAUDIO_X5_PAD) && (CONFIG_KEYPAD != IPOD_3G_PAD)
-wormlet.c
-#endif
-
#if (LCD_WIDTH != 138) && (LCD_WIDTH != 128)
/* These need adjusting for the Mini's and iRiver if'p screen */
brickmania.c
@@ -64,6 +60,9 @@ sudoku.c
video.c
#endif
vu_meter.c
+#if (CONFIG_KEYPAD != IAUDIO_X5_PAD) && (CONFIG_KEYPAD != IPOD_3G_PAD)
+wormlet.c
+#endif
#ifdef CONFIG_RTC
clock.c
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index e105f86..04a29a5 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -114,17 +114,14 @@ PLUGIN_HEADER
#define ARGH_SIZE 5
#define SPEED 8
#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132)
-#define COLOR_LCD
#define FOOD_SIZE 4
#define ARGH_SIZE 5
#define SPEED 6
#elif (LCD_WIDTH == 220) && (LCD_HEIGHT == 176)
-#define COLOR_LCD
#define FOOD_SIZE 5
#define ARGH_SIZE 6
#define SPEED 4
#elif (LCD_WIDTH == 320) && (LCD_HEIGHT == 240)
-#define COLOR_LCD
#define FOOD_SIZE 7
#define ARGH_SIZE 8
#define SPEED 4
@@ -632,7 +629,7 @@ static void clear_food(int index)
static void draw_food(int index)
{
/* draw the food object */
-#ifdef COLOR_LCD
+#ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(0, 150, 0));
#endif
rb->lcd_fillrect(foodx[index] + FIELD_RECT_X,
@@ -643,7 +640,7 @@ static void draw_food(int index)
foody[index] + FIELD_RECT_Y + 1,
FOOD_SIZE - 2, FOOD_SIZE - 2);
rb->lcd_set_drawmode(DRMODE_SOLID);
-#ifdef COLOR_LCD
+#ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0));
#endif
}
@@ -708,13 +705,13 @@ static int make_argh(int index)
static void draw_argh(int index)
{
/* draw the new argh */
-#ifdef COLOR_LCD
+#ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(175, 0, 0));
#endif
rb->lcd_fillrect(arghx[index] + FIELD_RECT_X,
arghy[index] + FIELD_RECT_Y,
ARGH_SIZE, ARGH_SIZE);
-#ifdef COLOR_LCD
+#ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0));
#endif
}
@@ -933,7 +930,7 @@ static void move_worm(struct worm *w)
*/
static void draw_worm(struct worm *w)
{
-#ifdef COLOR_LCD
+#ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(80, 40, 0));
#endif
/* draw the new head */
@@ -952,7 +949,7 @@ static void draw_worm(struct worm *w)
rb->lcd_drawpixel(x + FIELD_RECT_X, y + FIELD_RECT_Y);
}
rb->lcd_set_drawmode(DRMODE_SOLID);
-#ifdef COLOR_LCD
+#ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0));
#endif
}
@@ -1998,7 +1995,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb = api;
rb->lcd_setfont(FONT_SYSFIXED);
-#ifdef COLOR_LCD
+#ifdef HAVE_LCD_COLOR
rb->lcd_set_background(LCD_RGBPACK(200, 210, 230));
#endif