summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ross <midgey@rockbox.org>2007-02-17 23:06:22 +0000
committerTom Ross <midgey@rockbox.org>2007-02-17 23:06:22 +0000
commit2ad25c88182a1d898b7ba460beba3bd2231be94b (patch)
tree6b6b5ffa2cbf214fe45a5a323cd1427f1387099f
parentf435db010773623bdcd15b8357c94b60aca4e4e9 (diff)
downloadrockbox-2ad25c88182a1d898b7ba460beba3bd2231be94b.tar.gz
rockbox-2ad25c88182a1d898b7ba460beba3bd2231be94b.zip
Kill a few warnings in plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12366 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/blackjack.c2
-rw-r--r--apps/plugins/chopper.c4
-rw-r--r--apps/plugins/doom/w_wad.c2
-rw-r--r--apps/plugins/vu_meter.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/blackjack.c b/apps/plugins/blackjack.c
index a4c22797e8..728924da3e 100644
--- a/apps/plugins/blackjack.c
+++ b/apps/plugins/blackjack.c
@@ -824,7 +824,7 @@ static signed int blackjack_get_amount(char message[20], signed int lower_limit,
824 rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - 4*h - 1, message); 824 rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - 4*h - 1, message);
825 rb->snprintf(str, 9, "$%d", amount); 825 rb->snprintf(str, 9, "$%d", amount);
826 rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - 3*h, str); 826 rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - 3*h, str);
827#if (CONFIG_KEY == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD) 827#if (CONFIG_KEYPAD == IPOD_3G_PAD) || (CONFIG_KEYPAD == IPOD_4G_PAD)
828 rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - h-2, " >>|: +1"); 828 rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - h-2, " >>|: +1");
829 rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - 1, " |<<: -1"); 829 rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 - 1, " |<<: -1");
830 rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 + h, "SCROLL+: +10"); 830 rb->lcd_putsxy(LCD_WIDTH/2 - 9*w, LCD_HEIGHT/2 + h, "SCROLL+: +10");
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c
index 381b54a7e2..d636b2db4e 100644
--- a/apps/plugins/chopper.c
+++ b/apps/plugins/chopper.c
@@ -618,7 +618,7 @@ static int chopMenu(int menunum)
618 { "Steep", -1 }, 618 { "Steep", -1 },
619 }; 619 };
620 620
621#if HAVE_LCD_COLOR 621#ifdef HAVE_LCD_COLOR
622 rb->lcd_set_foreground(LCD_WHITE); 622 rb->lcd_set_foreground(LCD_WHITE);
623 rb->lcd_set_background(LCD_BLACK); 623 rb->lcd_set_background(LCD_BLACK);
624#elif LCD_DEPTH == 2 624#elif LCD_DEPTH == 2
@@ -920,7 +920,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
920#if LCD_DEPTH > 1 920#if LCD_DEPTH > 1
921 rb->lcd_set_backdrop(NULL); 921 rb->lcd_set_backdrop(NULL);
922#endif 922#endif
923#if HAVE_LCD_COLOR 923#ifdef HAVE_LCD_COLOR
924 rb->lcd_set_background(LCD_BLACK); 924 rb->lcd_set_background(LCD_BLACK);
925 rb->lcd_set_foreground(LCD_WHITE); 925 rb->lcd_set_foreground(LCD_WHITE);
926#endif 926#endif
diff --git a/apps/plugins/doom/w_wad.c b/apps/plugins/doom/w_wad.c
index 1e3406199d..48d695c3b4 100644
--- a/apps/plugins/doom/w_wad.c
+++ b/apps/plugins/doom/w_wad.c
@@ -512,7 +512,7 @@ void W_ReadLump(int lump, void *dest)
512 { 512 {
513 int c; 513 int c;
514 514
515#if DEBUGCACHE 515#ifdef DEBUGCACHE
516 if(gamestate==GS_LEVEL) 516 if(gamestate==GS_LEVEL)
517 printf("Loading %s\n", lumpinfo[lump].name); 517 printf("Loading %s\n", lumpinfo[lump].name);
518#endif 518#endif
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c
index 4a68088270..17f4e58165 100644
--- a/apps/plugins/vu_meter.c
+++ b/apps/plugins/vu_meter.c
@@ -131,7 +131,7 @@ PLUGIN_HEADER
131 131
132const struct plugin_api* rb; 132const struct plugin_api* rb;
133 133
134#if SIMULATOR && (CONFIG_CODEC != SWCODEC) 134#if defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)
135#define mas_codec_readreg(x) rand()%MAX_PEAK 135#define mas_codec_readreg(x) rand()%MAX_PEAK
136#endif 136#endif
137 137