summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;