summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c8
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
497static bool set_backdrop(void) 497static 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 {