diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-11-13 00:45:21 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-11-13 00:45:21 +0000 |
commit | 0297873f6ac3a9dc0844dc3da9d432e4253d555d (patch) | |
tree | cebede6c396a335cc6ccef974e20327f2c2a46dc /apps/onplay.c | |
parent | 8c3f0681b2347ff51680d61f9226c587a9cfdcee (diff) |
Backdrop support for greyscale targets. WPS backdrop is untested.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11520 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 60a737938f..59fa8caa85 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -50,7 +50,7 @@ #include "action.h" #include "splash.h" #include "yesno.h" -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 #include "backdrop.h" #endif #ifdef HAVE_LCD_BITMAP @@ -493,7 +493,7 @@ static bool delete_dir(void) return delete_handler(true); } -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 static bool set_backdrop(void) { /* load the image */ @@ -837,7 +837,7 @@ int onplay(char* file, int attr, int from) struct menu_item items[12]; #endif int m, i=0, result; -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 char *suffix; #endif @@ -920,7 +920,7 @@ int onplay(char* file, int attr, int from) items[i].function = delete_file; i++; -#ifdef HAVE_LCD_COLOR +#if LCD_DEPTH > 1 suffix = strrchr(file, '.'); if (suffix) { |