From 0297873f6ac3a9dc0844dc3da9d432e4253d555d Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 13 Nov 2006 00:45:21 +0000 Subject: Backdrop support for greyscale targets. WPS backdrop is untested. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11520 a1c6a512-1295-4272-9138-f99709370657 --- apps/onplay.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/onplay.c') 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) { -- cgit v1.2.3