From 3b75c86d74937a6bffcb371bb08bdfb182db9d2b Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 3 Aug 2009 15:06:30 +0000 Subject: A bit mroe wps/skin engine cleanup so that the structs the wps uses can be static: -add wrappers wps_data_load() and wps_data_init() so that other code doesn't need the structs for that -change (and rename) gui_sync_wps_uses_albumart() to take points to be filled as parameter to get the AA size of a wps git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22139 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/playback.c') diff --git a/apps/playback.c b/apps/playback.c index 2a015da..16f4766 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1872,9 +1872,10 @@ static void audio_finish_load_track(void) } } #ifdef HAVE_ALBUMART - if (tracks[track_widx].aa_hid < 0 && gui_sync_wps_uses_albumart()) + if (tracks[track_widx].aa_hid < 0) { char aa_path[MAX_PATH]; + /* find_albumart will error out if the wps doesn't have AA */ if (find_albumart(track_id3, aa_path, sizeof(aa_path))) { tracks[track_widx].aa_hid = bufopen(aa_path, 0, TYPE_BITMAP); -- cgit v1.1