summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorPaul Louden <paulthenerd@gmail.com>2007-06-19 20:08:16 +0000
committerPaul Louden <paulthenerd@gmail.com>2007-06-19 20:08:16 +0000
commitb6ede2189a9471966b9572637b216d4a1d500c8d (patch)
treec5cfa3d4146688e2c52776532f0601ba1a32d07c /apps
parent62dab05cc948e39af1b22f1241c890b920377b6d (diff)
downloadrockbox-b6ede2189a9471966b9572637b216d4a1d500c8d.tar.gz
rockbox-b6ede2189a9471966b9572637b216d4a1d500c8d.tar.bz2
rockbox-b6ede2189a9471966b9572637b216d4a1d500c8d.zip
Clear the whole colour list on new .colours load, rather than
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13675 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/filetypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index b9c0e69321..9cf23c2b00 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -149,7 +149,7 @@ void read_color_theme_file(void) {
int fd;
char *ext, *color;
int i;
- for (i = 0; i < filetype_count; i++) {
+ for (i = 0; i < MAX_FILETYPES+1; i++) {
custom_colors[i] = -1;
}
snprintf(buffer, MAX_PATH, "%s/%s.colours", THEME_DIR,