summaryrefslogtreecommitdiffstats
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2011-04-10 13:25:47 +0000
committerFrank Gevaerts <frank@gevaerts.be>2011-04-10 13:25:47 +0000
commitd09f97880a51d915feae563248b1bdcbcd845156 (patch)
tree29a8c6d6ceed9b76eb9a8f53dbf7c2084763ce98 /apps/onplay.c
parentb66239b4363863d3db22fe89ca9909eea11f5097 (diff)
downloadrockbox-d09f97880a51d915feae563248b1bdcbcd845156.tar.gz
rockbox-d09f97880a51d915feae563248b1bdcbcd845156.tar.bz2
rockbox-d09f97880a51d915feae563248b1bdcbcd845156.zip
Support loading backdrops from anywhere in the filesystem. Fixes FS#12041
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29700 a1c6a512-1295-4272-9138-f99709370657
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;
}