summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZakk Roberts <midk@rockbox.org>2006-03-13 07:05:15 +0000
committerZakk Roberts <midk@rockbox.org>2006-03-13 07:05:15 +0000
commite8a0506583c5e401ea753ff30a3c717e837dffb8 (patch)
tree34505d5a6f32738fdc17cacc12507e133694dffb
parentd91af84e4326b7093fb244e610f4a8fb9ea0df2f (diff)
downloadrockbox-e8a0506583c5e401ea753ff30a3c717e837dffb8.tar.gz
rockbox-e8a0506583c5e401ea753ff30a3c717e837dffb8.zip
Fixed ordering of SOURCES; removed redundancy pertaining to the definition of color LCDs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9024 a1c6a512-1295-4272-9138-f99709370657
-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 53533be6ea..d89a524444 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -33,10 +33,6 @@ plasma.c
33bejeweled.c 33bejeweled.c
34bounce.c 34bounce.c
35 35
36#if (CONFIG_KEYPAD != IAUDIO_X5_PAD) && (CONFIG_KEYPAD != IPOD_3G_PAD)
37wormlet.c
38#endif
39
40#if (LCD_WIDTH != 138) && (LCD_WIDTH != 128) 36#if (LCD_WIDTH != 138) && (LCD_WIDTH != 128)
41/* These need adjusting for the Mini's and iRiver if'p screen */ 37/* These need adjusting for the Mini's and iRiver if'p screen */
42brickmania.c 38brickmania.c
@@ -64,6 +60,9 @@ sudoku.c
64video.c 60video.c
65#endif 61#endif
66vu_meter.c 62vu_meter.c
63#if (CONFIG_KEYPAD != IAUDIO_X5_PAD) && (CONFIG_KEYPAD != IPOD_3G_PAD)
64wormlet.c
65#endif
67 66
68#ifdef CONFIG_RTC 67#ifdef CONFIG_RTC
69clock.c 68clock.c
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c
index e105f868e3..04a29a5414 100644
--- a/apps/plugins/wormlet.c
+++ b/apps/plugins/wormlet.c
@@ -114,17 +114,14 @@ PLUGIN_HEADER
114#define ARGH_SIZE 5 114#define ARGH_SIZE 5
115#define SPEED 8 115#define SPEED 8
116#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132) 116#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132)
117#define COLOR_LCD
118#define FOOD_SIZE 4 117#define FOOD_SIZE 4
119#define ARGH_SIZE 5 118#define ARGH_SIZE 5
120#define SPEED 6 119#define SPEED 6
121#elif (LCD_WIDTH == 220) && (LCD_HEIGHT == 176) 120#elif (LCD_WIDTH == 220) && (LCD_HEIGHT == 176)
122#define COLOR_LCD
123#define FOOD_SIZE 5 121#define FOOD_SIZE 5
124#define ARGH_SIZE 6 122#define ARGH_SIZE 6
125#define SPEED 4 123#define SPEED 4
126#elif (LCD_WIDTH == 320) && (LCD_HEIGHT == 240) 124#elif (LCD_WIDTH == 320) && (LCD_HEIGHT == 240)
127#define COLOR_LCD
128#define FOOD_SIZE 7 125#define FOOD_SIZE 7
129#define ARGH_SIZE 8 126#define ARGH_SIZE 8
130#define SPEED 4 127#define SPEED 4
@@ -632,7 +629,7 @@ static void clear_food(int index)
632static void draw_food(int index) 629static void draw_food(int index)
633{ 630{
634 /* draw the food object */ 631 /* draw the food object */
635#ifdef COLOR_LCD 632#ifdef HAVE_LCD_COLOR
636 rb->lcd_set_foreground(LCD_RGBPACK(0, 150, 0)); 633 rb->lcd_set_foreground(LCD_RGBPACK(0, 150, 0));
637#endif 634#endif
638 rb->lcd_fillrect(foodx[index] + FIELD_RECT_X, 635 rb->lcd_fillrect(foodx[index] + FIELD_RECT_X,
@@ -643,7 +640,7 @@ static void draw_food(int index)
643 foody[index] + FIELD_RECT_Y + 1, 640 foody[index] + FIELD_RECT_Y + 1,
644 FOOD_SIZE - 2, FOOD_SIZE - 2); 641 FOOD_SIZE - 2, FOOD_SIZE - 2);
645 rb->lcd_set_drawmode(DRMODE_SOLID); 642 rb->lcd_set_drawmode(DRMODE_SOLID);
646#ifdef COLOR_LCD 643#ifdef HAVE_LCD_COLOR
647 rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0)); 644 rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0));
648#endif 645#endif
649} 646}
@@ -708,13 +705,13 @@ static int make_argh(int index)
708static void draw_argh(int index) 705static void draw_argh(int index)
709{ 706{
710 /* draw the new argh */ 707 /* draw the new argh */
711#ifdef COLOR_LCD 708#ifdef HAVE_LCD_COLOR
712 rb->lcd_set_foreground(LCD_RGBPACK(175, 0, 0)); 709 rb->lcd_set_foreground(LCD_RGBPACK(175, 0, 0));
713#endif 710#endif
714 rb->lcd_fillrect(arghx[index] + FIELD_RECT_X, 711 rb->lcd_fillrect(arghx[index] + FIELD_RECT_X,
715 arghy[index] + FIELD_RECT_Y, 712 arghy[index] + FIELD_RECT_Y,
716 ARGH_SIZE, ARGH_SIZE); 713 ARGH_SIZE, ARGH_SIZE);
717#ifdef COLOR_LCD 714#ifdef HAVE_LCD_COLOR
718 rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0)); 715 rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0));
719#endif 716#endif
720} 717}
@@ -933,7 +930,7 @@ static void move_worm(struct worm *w)
933 */ 930 */
934static void draw_worm(struct worm *w) 931static void draw_worm(struct worm *w)
935{ 932{
936#ifdef COLOR_LCD 933#ifdef HAVE_LCD_COLOR
937 rb->lcd_set_foreground(LCD_RGBPACK(80, 40, 0)); 934 rb->lcd_set_foreground(LCD_RGBPACK(80, 40, 0));
938#endif 935#endif
939 /* draw the new head */ 936 /* draw the new head */
@@ -952,7 +949,7 @@ static void draw_worm(struct worm *w)
952 rb->lcd_drawpixel(x + FIELD_RECT_X, y + FIELD_RECT_Y); 949 rb->lcd_drawpixel(x + FIELD_RECT_X, y + FIELD_RECT_Y);
953 } 950 }
954 rb->lcd_set_drawmode(DRMODE_SOLID); 951 rb->lcd_set_drawmode(DRMODE_SOLID);
955#ifdef COLOR_LCD 952#ifdef HAVE_LCD_COLOR
956 rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0)); 953 rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0));
957#endif 954#endif
958} 955}
@@ -1998,7 +1995,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
1998 rb = api; 1995 rb = api;
1999 rb->lcd_setfont(FONT_SYSFIXED); 1996 rb->lcd_setfont(FONT_SYSFIXED);
2000 1997
2001#ifdef COLOR_LCD 1998#ifdef HAVE_LCD_COLOR
2002 rb->lcd_set_background(LCD_RGBPACK(200, 210, 230)); 1999 rb->lcd_set_background(LCD_RGBPACK(200, 210, 230));
2003#endif 2000#endif
2004 2001