summaryrefslogtreecommitdiffstats
path: root/apps/onplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 2411952acf..a2a3671d3e 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -1017,18 +1017,9 @@ MENUITEM_FUNCTION(add_to_faves_item, MENU_FUNC_USEPARAM, ID2P(LANG_ADD_TO_FAVES)
#if LCD_DEPTH > 1
static bool set_backdrop(void)
{
- /* load the image
- if(sb_set_backdrop(SCREEN_MAIN, selected_file)) {
- splash(HZ, str(LANG_BACKDROP_LOADED));
- set_file(selected_file, (char *)global_settings.backdrop_file,
- MAX_FILENAME);
- return true;
- } else {
- splash(HZ, str(LANG_BACKDROP_FAILED));
- return false;
- }*/
- set_file(selected_file, (char *)global_settings.backdrop_file,
- MAX_FILENAME);
+ strlcpy(global_settings.backdrop_file, selected_file,
+ sizeof(global_settings.backdrop_file));
+ settings_save();
skin_backdrop_load_setting();
return true;
}