1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Zakk Roberts 2006-03-13 07:05:15 +00:00
parent d91af84e43
commit e8a0506583
2 changed files with 10 additions and 14 deletions

View file

@ -33,10 +33,6 @@ plasma.c
bejeweled.c bejeweled.c
bounce.c bounce.c
#if (CONFIG_KEYPAD != IAUDIO_X5_PAD) && (CONFIG_KEYPAD != IPOD_3G_PAD)
wormlet.c
#endif
#if (LCD_WIDTH != 138) && (LCD_WIDTH != 128) #if (LCD_WIDTH != 138) && (LCD_WIDTH != 128)
/* These need adjusting for the Mini's and iRiver if'p screen */ /* These need adjusting for the Mini's and iRiver if'p screen */
brickmania.c brickmania.c
@ -64,6 +60,9 @@ sudoku.c
video.c video.c
#endif #endif
vu_meter.c vu_meter.c
#if (CONFIG_KEYPAD != IAUDIO_X5_PAD) && (CONFIG_KEYPAD != IPOD_3G_PAD)
wormlet.c
#endif
#ifdef CONFIG_RTC #ifdef CONFIG_RTC
clock.c clock.c

View file

@ -114,17 +114,14 @@ PLUGIN_HEADER
#define ARGH_SIZE 5 #define ARGH_SIZE 5
#define SPEED 8 #define SPEED 8
#elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132) #elif (LCD_WIDTH == 176) && (LCD_HEIGHT == 132)
#define COLOR_LCD
#define FOOD_SIZE 4 #define FOOD_SIZE 4
#define ARGH_SIZE 5 #define ARGH_SIZE 5
#define SPEED 6 #define SPEED 6
#elif (LCD_WIDTH == 220) && (LCD_HEIGHT == 176) #elif (LCD_WIDTH == 220) && (LCD_HEIGHT == 176)
#define COLOR_LCD
#define FOOD_SIZE 5 #define FOOD_SIZE 5
#define ARGH_SIZE 6 #define ARGH_SIZE 6
#define SPEED 4 #define SPEED 4
#elif (LCD_WIDTH == 320) && (LCD_HEIGHT == 240) #elif (LCD_WIDTH == 320) && (LCD_HEIGHT == 240)
#define COLOR_LCD
#define FOOD_SIZE 7 #define FOOD_SIZE 7
#define ARGH_SIZE 8 #define ARGH_SIZE 8
#define SPEED 4 #define SPEED 4
@ -632,7 +629,7 @@ static void clear_food(int index)
static void draw_food(int index) static void draw_food(int index)
{ {
/* draw the food object */ /* draw the food object */
#ifdef COLOR_LCD #ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(0, 150, 0)); rb->lcd_set_foreground(LCD_RGBPACK(0, 150, 0));
#endif #endif
rb->lcd_fillrect(foodx[index] + FIELD_RECT_X, rb->lcd_fillrect(foodx[index] + FIELD_RECT_X,
@ -643,7 +640,7 @@ static void draw_food(int index)
foody[index] + FIELD_RECT_Y + 1, foody[index] + FIELD_RECT_Y + 1,
FOOD_SIZE - 2, FOOD_SIZE - 2); FOOD_SIZE - 2, FOOD_SIZE - 2);
rb->lcd_set_drawmode(DRMODE_SOLID); rb->lcd_set_drawmode(DRMODE_SOLID);
#ifdef COLOR_LCD #ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0)); rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0));
#endif #endif
} }
@ -708,13 +705,13 @@ static int make_argh(int index)
static void draw_argh(int index) static void draw_argh(int index)
{ {
/* draw the new argh */ /* draw the new argh */
#ifdef COLOR_LCD #ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(175, 0, 0)); rb->lcd_set_foreground(LCD_RGBPACK(175, 0, 0));
#endif #endif
rb->lcd_fillrect(arghx[index] + FIELD_RECT_X, rb->lcd_fillrect(arghx[index] + FIELD_RECT_X,
arghy[index] + FIELD_RECT_Y, arghy[index] + FIELD_RECT_Y,
ARGH_SIZE, ARGH_SIZE); ARGH_SIZE, ARGH_SIZE);
#ifdef COLOR_LCD #ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0)); rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0));
#endif #endif
} }
@ -933,7 +930,7 @@ static void move_worm(struct worm *w)
*/ */
static void draw_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)); rb->lcd_set_foreground(LCD_RGBPACK(80, 40, 0));
#endif #endif
/* draw the new head */ /* 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_drawpixel(x + FIELD_RECT_X, y + FIELD_RECT_Y);
} }
rb->lcd_set_drawmode(DRMODE_SOLID); rb->lcd_set_drawmode(DRMODE_SOLID);
#ifdef COLOR_LCD #ifdef HAVE_LCD_COLOR
rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0)); rb->lcd_set_foreground(LCD_RGBPACK(0, 0, 0));
#endif #endif
} }
@ -1998,7 +1995,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb = api; rb = api;
rb->lcd_setfont(FONT_SYSFIXED); rb->lcd_setfont(FONT_SYSFIXED);
#ifdef COLOR_LCD #ifdef HAVE_LCD_COLOR
rb->lcd_set_background(LCD_RGBPACK(200, 210, 230)); rb->lcd_set_background(LCD_RGBPACK(200, 210, 230));
#endif #endif