From e9c10189e93fe53cff74ae8fa15d19b1c522d5e4 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 16 Oct 2009 19:14:41 +0000 Subject: Rework albumart buffering internally to allow for mutliple albumart sizes. Playback now has a few albumart slots. Anything (most importantly: skins) can obtain such a slot. The slot has fields for the size which is passed to bufopen then to image_load to buffer the albumart with the proper size. Currently there's 1 slot. We can increase it for remotes if we want. Custom statusbar will increase it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23209 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'apps/gui/wps.c') diff --git a/apps/gui/wps.c b/apps/gui/wps.c index d4a2893ff2..342ebdea2b 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -1278,6 +1278,7 @@ static void statusbar_toggle_handler(void *data) } #endif + void gui_sync_wps_init(void) { int i; @@ -1285,6 +1286,7 @@ void gui_sync_wps_init(void) { #ifdef HAVE_ALBUMART wps_datas[i].albumart = NULL; + wps_datas[i].playback_aa_slot = -1; #endif #ifdef HAVE_REMOTE_LCD wps_datas[i].remote_wps = (i == SCREEN_REMOTE); @@ -1304,26 +1306,6 @@ void gui_sync_wps_init(void) #endif } -#ifdef HAVE_ALBUMART -bool wps_uses_albumart(int *width, int *height) -{ - int i; - FOR_NB_SCREENS(i) { - struct gui_wps *gwps = &gui_wps[i]; - struct skin_albumart *aa = gwps->data->albumart; - if (aa && (aa->state != WPS_ALBUMART_NONE)) - { - if (width) - *width = aa->width; - if (height) - *height = aa->height; - return true; - } - } - return false; -} -#endif - #ifdef IPOD_ACCESSORY_PROTOCOL int wps_get_ff_rewind_count(void) -- cgit v1.2.3