From 5b25a6e2dfaa4a336a5690935db5b7eadba971c5 Mon Sep 17 00:00:00 2001 From: Paul Louden Date: Mon, 18 Jun 2007 22:41:39 +0000 Subject: Added one more filetype. ??? in .colors lets you set the color for all unknown filetypes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13669 a1c6a512-1295-4272-9138-f99709370657 --- apps/filetypes.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/filetypes.c b/apps/filetypes.c index 89933c8..75c58cc 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -126,7 +126,7 @@ static struct file_type filetypes[MAX_FILETYPES]; static int custom_filetype_icons[MAX_FILETYPES]; static bool custom_icons_loaded = false; #ifdef HAVE_LCD_COLOR -static int custom_colors[MAX_FILETYPES]; +static int custom_colors[MAX_FILETYPES+1]; #endif static int filetype_count = 0; static unsigned char heighest_attr = 0; @@ -166,6 +166,11 @@ void read_color_theme_file(void) { custom_colors[0] = hex_to_rgb(color); continue; } + if (!strcasecmp(ext, "???")) + { + custom_colors[MAX_FILETYPES] = hex_to_rgb(color); + continue; + } for (i=1; i