diff options
| author | Dave Chapman <dave@dchapman.com> | 2008-03-21 13:41:35 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2008-03-21 13:41:35 +0000 |
| commit | e92d2c51ed455cc0a889fb6d38b4802eee252a6a (patch) | |
| tree | 028860f37ad61406d82ad036694186dbc9d45360 /apps/filetypes.c | |
| parent | bb026334c020bb04839186e7a45bac1dc7cb1724 (diff) | |
| download | rockbox-e92d2c51ed455cc0a889fb6d38b4802eee252a6a.zip rockbox-e92d2c51ed455cc0a889fb6d38b4802eee252a6a.tar.gz rockbox-e92d2c51ed455cc0a889fb6d38b4802eee252a6a.tar.bz2 rockbox-e92d2c51ed455cc0a889fb6d38b4802eee252a6a.tar.xz | |
Add a general-purpose parse_list function to parse a string containing a delimited list of items and adapt the parse_image_load() function in the WPS parser to use it. This function will also be used to parse the upcoming WPS %V viewport tag, but I'm committing it separately as these changes are unrelated to the viewport implementation itself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16728 a1c6a512-1295-4272-9138-f99709370657
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 8427bc7..1ef136d 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -164,12 +164,12 @@ void read_color_theme_file(void) { continue; if (!strcasecmp(ext, "folder")) { - custom_colors[0] = hex_to_rgb(color); + hex_to_rgb(color, &custom_colors[0]); continue; } if (!strcasecmp(ext, "???")) { - custom_colors[MAX_FILETYPES] = hex_to_rgb(color); + hex_to_rgb(color, &custom_colors[MAX_FILETYPES]); continue; } for (i=1; i<filetype_count; i++) @@ -177,7 +177,7 @@ void read_color_theme_file(void) { if (filetypes[i].extension && !strcasecmp(ext, filetypes[i].extension)) { - custom_colors[i] = hex_to_rgb(color); + hex_to_rgb(color, &custom_colors[i]); break; } } |