summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-14 15:49:11 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-14 15:49:11 +0000
commit0f0d9064c5e7add982d4b62850375985d79c1168 (patch)
tree432ace6da9deb1723e65851fd86a17c621c90405 /apps/settings.c
parentef53cc099e1a04442230967a755bf8850afef619 (diff)
downloadrockbox-0f0d9064c5e7add982d4b62850375985d79c1168.tar.gz
rockbox-0f0d9064c5e7add982d4b62850375985d79c1168.zip
Remove wps_reset(), and rename skin_data_init to skin_data_reset() and extend it to zero most of the wps_data members.
As these are called when parsing a skin it doesn't need to be called by the wps or settings, so make it local to skin_parser.c. Reorder the members of struct wps_data for more effecient alignment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23171 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/settings.c b/apps/settings.c
index ce888c44c5..2a5e31824f 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -741,25 +741,25 @@ void settings_apply_skins(void)
741 /* re-initialize the skin buffer before we start reloading skins */ 741 /* re-initialize the skin buffer before we start reloading skins */
742 skin_buffer_init(); 742 skin_buffer_init();
743 if ( global_settings.wps_file[0] && 743 if ( global_settings.wps_file[0] &&
744 global_settings.wps_file[0] != 0xff ) { 744 global_settings.wps_file[0] != 0xff )
745 {
745 snprintf(buf, sizeof buf, WPS_DIR "/%s.wps", 746 snprintf(buf, sizeof buf, WPS_DIR "/%s.wps",
746 global_settings.wps_file); 747 global_settings.wps_file);
747 wps_data_load(SCREEN_MAIN, buf, true); 748 wps_data_load(SCREEN_MAIN, buf, true);
748 } 749 }
749 else 750 else
750 { 751 {
751 wps_data_init(SCREEN_MAIN);
752 wps_data_load(SCREEN_MAIN, NULL, true); 752 wps_data_load(SCREEN_MAIN, NULL, true);
753 } 753 }
754#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1) 754#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1)
755 if ( global_settings.rwps_file[0]) { 755 if ( global_settings.rwps_file[0])
756 {
756 snprintf(buf, sizeof buf, WPS_DIR "/%s.rwps", 757 snprintf(buf, sizeof buf, WPS_DIR "/%s.rwps",
757 global_settings.rwps_file); 758 global_settings.rwps_file);
758 wps_data_load(SCREEN_REMOTE, buf, true); 759 wps_data_load(SCREEN_REMOTE, buf, true);
759 } 760 }
760 else 761 else
761 { 762 {
762 wps_data_init(SCREEN_REMOTE);
763 wps_data_load(SCREEN_REMOTE, NULL, true); 763 wps_data_load(SCREEN_REMOTE, NULL, true);
764 } 764 }
765#endif 765#endif