summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-02 21:46:23 +0000
committerDave Chapman <dave@dchapman.com>2006-02-02 21:46:23 +0000
commit33f2e28daa94fb8996822311fee4a596608638f7 (patch)
tree842048f0ed75903113779a361d976be04ad821f5 /apps
parent5c1cc2f7477853f64f53a1752dc74e0bc7365e67 (diff)
downloadrockbox-33f2e28daa94fb8996822311fee4a596608638f7.tar.gz
rockbox-33f2e28daa94fb8996822311fee4a596608638f7.zip
Fix typos - tests for HAVE_LCD_COLOR should use #ifdef, not #if
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8540 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/gwps.c2
-rw-r--r--apps/onplay.c4
-rw-r--r--apps/settings.c2
-rw-r--r--apps/tree.c6
4 files changed, 7 insertions, 7 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index e31ac12110..024c3cc79f 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -109,7 +109,7 @@ long gui_wps_show(void)
{
gui_wps_set_margin(&gui_wps[i]);
}
-#if HAVE_LCD_COLOR
+#ifdef HAVE_LCD_COLOR
old_backdrop = lcd_get_backdrop();
if (wps_has_backdrop) {
lcd_set_backdrop(&wps_backdrop[0][0]);
diff --git a/apps/onplay.c b/apps/onplay.c
index 167889e824..17b4d1591b 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -539,7 +539,7 @@ int onplay(char* file, int attr, int from)
{
struct menu_item items[8]; /* increase this if you add entries! */
int m, i=0, result;
-#if HAVE_LCD_COLOR
+#ifdef HAVE_LCD_COLOR
char *suffix;
#endif
@@ -604,7 +604,7 @@ int onplay(char* file, int attr, int from)
items[i].function = delete_file;
i++;
-#if HAVE_LCD_COLOR
+#ifdef HAVE_LCD_COLOR
suffix = strrchr(file, '.');
if (suffix) {
if (strcasecmp(suffix, ".bmp") == 0) {
diff --git a/apps/settings.c b/apps/settings.c
index 3d94df3e4c..07db21ef66 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -72,7 +72,7 @@
#include "statusbar.h"
#include "splash.h"
#include "list.h"
-#if HAVE_LCD_COLOR
+#ifdef HAVE_LCD_COLOR
#include "backdrop.h"
#endif
diff --git a/apps/tree.c b/apps/tree.c
index b61ed0a43d..e91eb4b16f 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -864,18 +864,18 @@ static bool dirbrowse(void)
if (start_wps && audio_status() )
{
int i;
-#if HAVE_LCD_COLOR
+#ifdef HAVE_LCD_COLOR
fb_data* old_backdrop;
#endif
FOR_NB_SCREENS(i)
screens[i].stop_scroll();
-#if HAVE_LCD_COLOR
+#ifdef HAVE_LCD_COLOR
old_backdrop = lcd_get_backdrop();
#endif
if (gui_wps_show() == SYS_USB_CONNECTED)
reload_dir = true;
-#if HAVE_LCD_COLOR
+#ifdef HAVE_LCD_COLOR
lcd_set_backdrop(old_backdrop);
#endif
#ifdef HAVE_HOTSWAP