From 9ab5bb2ed5b50930cbc0b72d1fde36b2aea7c300 Mon Sep 17 00:00:00 2001 From: kugel Date: Thu, 4 Nov 2010 23:15:52 +0000 Subject: [PATCH] Adapt icon loading to get_user_file_path() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28484 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/icon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.11.4.GIT