summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-09-03 07:39:55 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-09-03 07:39:55 +0000
commit0b637600453abda08f0e17e16a30bb2f15ae725f (patch)
treed9bef60ea42ff8746e9720ce29b8b600c6c2cc08 /apps
parentd1bcc58290e75c03fa0d37b04522b5957531d5dc (diff)
downloadrockbox-0b637600453abda08f0e17e16a30bb2f15ae725f.zip
rockbox-0b637600453abda08f0e17e16a30bb2f15ae725f.tar.gz
rockbox-0b637600453abda08f0e17e16a30bb2f15ae725f.tar.bz2
rockbox-0b637600453abda08f0e17e16a30bb2f15ae725f.tar.xz
New player directory with icons
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2142 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/Makefile9
-rw-r--r--apps/player/icons.c34
-rw-r--r--apps/player/icons.h34
3 files changed, 76 insertions, 1 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 07b093e..a501bb27 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -42,6 +42,8 @@ ifeq ($(TARGET),-DARCHOS_RECORDER)
CFLAGS += -Irecorder
OUTNAME = ajbrec.ajz
else
+ SRC += $(wildcard player/*.c)
+ CFLAGS += -Iplayer
OUTNAME = archos.mod
endif
@@ -77,7 +79,12 @@ clean:
-$(RM) -r $(OBJDIR)/$(DEPS)
DEPS:=.deps
-DEPDIRS:=$(DEPS) $(DEPS)/recorder
+DEPDIRS:=$(DEPS)
+ifeq ($(TARGET),-DARCHOS_RECORDER)
+DEPDIRS += $(DEPS)/recorder
+else
+DEPDIRS += $(DEPS)/player
+endif
DIRS = $(subst $(DEPS),".",$(DEPDIRS))
diff --git a/apps/player/icons.c b/apps/player/icons.c
new file mode 100644
index 0000000..b01961d
--- /dev/null
+++ b/apps/player/icons.c
@@ -0,0 +1,34 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2002 Justin Heiner
+ *
+ * All files in this archive are subject to the GNU General Public License.
+ * See the file COPYING in the source tree root for full license agreement.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+#include "lcd.h"
+#include "icons.h"
+
+#ifdef HAVE_LCD_CHARCELLS
+
+char tree_icons_5x7[LastTreeIcon][8] =
+{
+ { 0x06, 0x09, 0x09, 0x02, 0x02, 0x00, 0x02, 0x00 }, /* Unknown */
+ { 0x0c, 0x13, 0x11, 0x11, 0x11, 0x11, 0x1f, 0x00 }, /* Folder */
+ { 0x07, 0x04, 0x07, 0x04, 0x1c, 0x1c, 0x08, 0x00 }, /* File */
+ { 0x17, 0x00, 0x17, 0x00, 0x17, 0x00, 0x17, 0x00 }, /* Playlist */
+ { 0x01, 0x01, 0x02, 0x02, 0x14, 0x0c, 0x04, 0x00 }, /* WPS */
+ { 0x1f, 0x11, 0x1b, 0x15, 0x1b, 0x11, 0x1f, 0x00 } /* MOD/AJZ */
+};
+
+#endif
diff --git a/apps/player/icons.h b/apps/player/icons.h
new file mode 100644
index 0000000..8760896
--- /dev/null
+++ b/apps/player/icons.h
@@ -0,0 +1,34 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright (C) 2002 Justin Heiner
+ *
+ * All files in this archive are subject to the GNU General Public License.
+ * See the file COPYING in the source tree root for full license agreement.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+#include <lcd.h>
+
+/*
+ * Icons of size 5x7 pixels for the Player LCD
+ */
+
+#ifdef HAVE_LCD_CHARCELLS
+
+enum icons_6x8 {
+ Unknown, File, Folder, Playlist, Wps, Mod_Ajz,
+ LastTreeIcon
+};
+
+extern char tree_icons_5x7[LastTreeIcon][8];
+
+#endif