diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2007-04-16 09:14:36 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2007-04-16 09:14:36 +0000 |
commit | 6a5cc0bd25bd468c79e453fa49f353edd824141a (patch) | |
tree | 8b406e8390550ff8b87eae3214309867574657f0 /apps/settings.c | |
parent | 7afe2e86931313653d4dedb6d5167c79c2822aba (diff) | |
download | rockbox-6a5cc0bd25bd468c79e453fa49f353edd824141a.tar.gz rockbox-6a5cc0bd25bd468c79e453fa49f353edd824141a.zip |
Customizable icons for all bitmap targets. (FS#7013)
http://www.rockbox.org/twiki/bin/view/Main/CustomIcons for info on format and how to load them
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13177 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/settings.c b/apps/settings.c index 23b81173bd..f3ce2d41c1 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -853,6 +853,9 @@ void settings_apply(void) | |||
853 | #if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC | 853 | #if defined(HAVE_RECORDING) && CONFIG_CODEC == SWCODEC |
854 | enc_global_settings_apply(); | 854 | enc_global_settings_apply(); |
855 | #endif | 855 | #endif |
856 | /* load the icon set */ | ||
857 | icons_init(); | ||
858 | |||
856 | } | 859 | } |
857 | 860 | ||
858 | 861 | ||
@@ -1076,13 +1079,7 @@ static bool do_set_setting(const unsigned char* string, void *variable, | |||
1076 | else oldvalue = *(bool*)variable; | 1079 | else oldvalue = *(bool*)variable; |
1077 | 1080 | ||
1078 | gui_synclist_init(&lists,value_setting_get_name_cb,(void*)cb_data,false,1); | 1081 | gui_synclist_init(&lists,value_setting_get_name_cb,(void*)cb_data,false,1); |
1079 | gui_synclist_set_title(&lists, (char*)string, | 1082 | gui_synclist_set_title(&lists, (char*)string,Icon_Questionmark); |
1080 | #ifdef HAVE_LCD_BITMAP | ||
1081 | bitmap_icons_6x8[Icon_Questionmark] | ||
1082 | #else | ||
1083 | NOICON | ||
1084 | #endif | ||
1085 | ); | ||
1086 | gui_synclist_set_icon_callback(&lists,NULL); | 1083 | gui_synclist_set_icon_callback(&lists,NULL); |
1087 | gui_synclist_set_nb_items(&lists,nb_items); | 1084 | gui_synclist_set_nb_items(&lists,nb_items); |
1088 | gui_synclist_limit_scroll(&lists,true); | 1085 | gui_synclist_limit_scroll(&lists,true); |