diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/Makefile | 9 | ||||
-rw-r--r-- | apps/player/icons.c | 34 | ||||
-rw-r--r-- | apps/player/icons.h | 34 |
3 files changed, 76 insertions, 1 deletions
diff --git a/apps/Makefile b/apps/Makefile index 07b093eb40..a501bb2747 100644 --- a/apps/Makefile +++ b/apps/Makefile | |||
@@ -42,6 +42,8 @@ ifeq ($(TARGET),-DARCHOS_RECORDER) | |||
42 | CFLAGS += -Irecorder | 42 | CFLAGS += -Irecorder |
43 | OUTNAME = ajbrec.ajz | 43 | OUTNAME = ajbrec.ajz |
44 | else | 44 | else |
45 | SRC += $(wildcard player/*.c) | ||
46 | CFLAGS += -Iplayer | ||
45 | OUTNAME = archos.mod | 47 | OUTNAME = archos.mod |
46 | endif | 48 | endif |
47 | 49 | ||
@@ -77,7 +79,12 @@ clean: | |||
77 | -$(RM) -r $(OBJDIR)/$(DEPS) | 79 | -$(RM) -r $(OBJDIR)/$(DEPS) |
78 | 80 | ||
79 | DEPS:=.deps | 81 | DEPS:=.deps |
80 | DEPDIRS:=$(DEPS) $(DEPS)/recorder | 82 | DEPDIRS:=$(DEPS) |
83 | ifeq ($(TARGET),-DARCHOS_RECORDER) | ||
84 | DEPDIRS += $(DEPS)/recorder | ||
85 | else | ||
86 | DEPDIRS += $(DEPS)/player | ||
87 | endif | ||
81 | 88 | ||
82 | DIRS = $(subst $(DEPS),".",$(DEPDIRS)) | 89 | DIRS = $(subst $(DEPS),".",$(DEPDIRS)) |
83 | 90 | ||
diff --git a/apps/player/icons.c b/apps/player/icons.c new file mode 100644 index 0000000000..b01961d546 --- /dev/null +++ b/apps/player/icons.c | |||
@@ -0,0 +1,34 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 Justin Heiner | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #include "lcd.h" | ||
20 | #include "icons.h" | ||
21 | |||
22 | #ifdef HAVE_LCD_CHARCELLS | ||
23 | |||
24 | char tree_icons_5x7[LastTreeIcon][8] = | ||
25 | { | ||
26 | { 0x06, 0x09, 0x09, 0x02, 0x02, 0x00, 0x02, 0x00 }, /* Unknown */ | ||
27 | { 0x0c, 0x13, 0x11, 0x11, 0x11, 0x11, 0x1f, 0x00 }, /* Folder */ | ||
28 | { 0x07, 0x04, 0x07, 0x04, 0x1c, 0x1c, 0x08, 0x00 }, /* File */ | ||
29 | { 0x17, 0x00, 0x17, 0x00, 0x17, 0x00, 0x17, 0x00 }, /* Playlist */ | ||
30 | { 0x01, 0x01, 0x02, 0x02, 0x14, 0x0c, 0x04, 0x00 }, /* WPS */ | ||
31 | { 0x1f, 0x11, 0x1b, 0x15, 0x1b, 0x11, 0x1f, 0x00 } /* MOD/AJZ */ | ||
32 | }; | ||
33 | |||
34 | #endif | ||
diff --git a/apps/player/icons.h b/apps/player/icons.h new file mode 100644 index 0000000000..87608961b8 --- /dev/null +++ b/apps/player/icons.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 Justin Heiner | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #include <lcd.h> | ||
20 | |||
21 | /* | ||
22 | * Icons of size 5x7 pixels for the Player LCD | ||
23 | */ | ||
24 | |||
25 | #ifdef HAVE_LCD_CHARCELLS | ||
26 | |||
27 | enum icons_6x8 { | ||
28 | Unknown, File, Folder, Playlist, Wps, Mod_Ajz, | ||
29 | LastTreeIcon | ||
30 | }; | ||
31 | |||
32 | extern char tree_icons_5x7[LastTreeIcon][8]; | ||
33 | |||
34 | #endif | ||