summaryrefslogtreecommitdiff
path: root/apps/gui/icon.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-11-04 23:15:52 +0000
committerThomas Martitz <kugel@rockbox.org>2010-11-04 23:15:52 +0000
commit41910a04b7a28b6613ff0ff3803c736b3c899862 (patch)
treeef1600b3b32932d48780503d5055278da7bb615c /apps/gui/icon.c
parentc8f143fed88ca1a60c95cccfac01ac716c68e442 (diff)
Adapt icon loading to get_user_file_path()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28484 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/icon.c')
-rw-r--r--apps/gui/icon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/gui/icon.c b/apps/gui/icon.c
index d12447b79a..c4581e031f 100644
--- a/apps/gui/icon.c
+++ b/apps/gui/icon.c
@@ -228,9 +228,12 @@ static void load_icons(const char* filename, enum Iconset iconset)
if (filename[0] && filename[0] != '-')
{
char path[MAX_PATH];
+ char temp[MAX_PATH];
+ const char * fname;
snprintf(path, sizeof(path), "%s/%s.bmp", ICON_DIR, filename);
- size_read = read_bmp_file(path, bmp, IMG_BUFSIZE, bmpformat, NULL);
+ fname = get_user_file_path(path, IS_FILE, temp, sizeof(temp));
+ size_read = read_bmp_file(fname, bmp, IMG_BUFSIZE, bmpformat, NULL);
if (size_read > 0)
{
*loaded_ok = true;