diff options
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r-- | apps/filetypes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c index 8427bc7450..1ef136d5ce 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c | |||
@@ -164,12 +164,12 @@ void read_color_theme_file(void) { | |||
164 | continue; | 164 | continue; |
165 | if (!strcasecmp(ext, "folder")) | 165 | if (!strcasecmp(ext, "folder")) |
166 | { | 166 | { |
167 | custom_colors[0] = hex_to_rgb(color); | 167 | hex_to_rgb(color, &custom_colors[0]); |
168 | continue; | 168 | continue; |
169 | } | 169 | } |
170 | if (!strcasecmp(ext, "???")) | 170 | if (!strcasecmp(ext, "???")) |
171 | { | 171 | { |
172 | custom_colors[MAX_FILETYPES] = hex_to_rgb(color); | 172 | hex_to_rgb(color, &custom_colors[MAX_FILETYPES]); |
173 | continue; | 173 | continue; |
174 | } | 174 | } |
175 | for (i=1; i<filetype_count; i++) | 175 | for (i=1; i<filetype_count; i++) |
@@ -177,7 +177,7 @@ void read_color_theme_file(void) { | |||
177 | if (filetypes[i].extension && | 177 | if (filetypes[i].extension && |
178 | !strcasecmp(ext, filetypes[i].extension)) | 178 | !strcasecmp(ext, filetypes[i].extension)) |
179 | { | 179 | { |
180 | custom_colors[i] = hex_to_rgb(color); | 180 | hex_to_rgb(color, &custom_colors[i]); |
181 | break; | 181 | break; |
182 | } | 182 | } |
183 | } | 183 | } |