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) | |
download | rockbox-0297873f6ac3a9dc0844dc3da9d432e4253d555d.tar.gz rockbox-0297873f6ac3a9dc0844dc3da9d432e4253d555d.zip |
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 @@ | |||
50 | #include "action.h" | 50 | #include "action.h" |
51 | #include "splash.h" | 51 | #include "splash.h" |
52 | #include "yesno.h" | 52 | #include "yesno.h" |
53 | #ifdef HAVE_LCD_COLOR | 53 | #if LCD_DEPTH > 1 |
54 | #include "backdrop.h" | 54 | #include "backdrop.h" |
55 | #endif | 55 | #endif |
56 | #ifdef HAVE_LCD_BITMAP | 56 | #ifdef HAVE_LCD_BITMAP |
@@ -493,7 +493,7 @@ static bool delete_dir(void) | |||
493 | return delete_handler(true); | 493 | return delete_handler(true); |
494 | } | 494 | } |
495 | 495 | ||
496 | #ifdef HAVE_LCD_COLOR | 496 | #if LCD_DEPTH > 1 |
497 | static bool set_backdrop(void) | 497 | static bool set_backdrop(void) |
498 | { | 498 | { |
499 | /* load the image */ | 499 | /* load the image */ |
@@ -837,7 +837,7 @@ int onplay(char* file, int attr, int from) | |||
837 | struct menu_item items[12]; | 837 | struct menu_item items[12]; |
838 | #endif | 838 | #endif |
839 | int m, i=0, result; | 839 | int m, i=0, result; |
840 | #ifdef HAVE_LCD_COLOR | 840 | #if LCD_DEPTH > 1 |
841 | char *suffix; | 841 | char *suffix; |
842 | #endif | 842 | #endif |
843 | 843 | ||
@@ -920,7 +920,7 @@ int onplay(char* file, int attr, int from) | |||
920 | items[i].function = delete_file; | 920 | items[i].function = delete_file; |
921 | i++; | 921 | i++; |
922 | 922 | ||
923 | #ifdef HAVE_LCD_COLOR | 923 | #if LCD_DEPTH > 1 |
924 | suffix = strrchr(file, '.'); | 924 | suffix = strrchr(file, '.'); |
925 | if (suffix) | 925 | if (suffix) |
926 | { | 926 | { |