summaryrefslogtreecommitdiff
path: root/apps/gui/wps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r--apps/gui/wps.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index 2529686e3e..3524ba34b7 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -79,11 +79,12 @@
79#define MIN_FF_REWIND_STEP 500 79#define MIN_FF_REWIND_STEP 500
80 80
81/* this is for the viewportmanager */ 81/* this is for the viewportmanager */
82static int wpsbars; 82static int wpsbars = 0;
83/* currently only one wps_state is needed */ 83
84static struct wps_state wps_state; 84/* currently only one wps_state is needed, initialize to 0 */
85static struct gui_wps gui_wps[NB_SCREENS]; 85static struct wps_state wps_state = { .id3 = NULL};
86static struct wps_data wps_datas[NB_SCREENS]; 86static struct gui_wps gui_wps[NB_SCREENS] = {{ 0 }};
87static struct wps_data wps_datas[NB_SCREENS] = {{ 0 }};
87 88
88/* initial setup of wps_data */ 89/* initial setup of wps_data */
89static void wps_state_init(void); 90static void wps_state_init(void);
@@ -160,12 +161,6 @@ void wps_data_load(enum screen_type screen, const char *buf, bool isfile)
160#endif 161#endif
161} 162}
162 163
163void wps_data_init(enum screen_type screen)
164{
165 skin_data_init(gui_wps[screen].data);
166}
167
168
169static bool wps_fading_out = false; 164static bool wps_fading_out = false;
170void fade(bool fade_in, bool updatewps) 165void fade(bool fade_in, bool updatewps)
171{ 166{
@@ -1288,7 +1283,6 @@ void gui_sync_wps_init(void)
1288 int i; 1283 int i;
1289 FOR_NB_SCREENS(i) 1284 FOR_NB_SCREENS(i)
1290 { 1285 {
1291 skin_data_init(&wps_datas[i]);
1292#ifdef HAVE_ALBUMART 1286#ifdef HAVE_ALBUMART
1293 wps_datas[i].albumart = NULL; 1287 wps_datas[i].albumart = NULL;
1294#endif 1288#endif