From 58b4e71d3244b3c433e1fd3b494d17379bf57c48 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 14 May 2013 07:03:44 +0200 Subject: skin_engine: Fix albumart logic on skin reloading. This logic checks whether the skin's albumart dimensions differ from the previous skin to force rebuffering if necessary. This was broken since a while as the necessary information was reset. Change-Id: I3b9f3a819c6af202af8ad66c13742f704ce45ab1 Reviewed-on: http://gerrit.rockbox.org/476 Tested-by: Thomas Martitz Reviewed-by: Thomas Martitz --- apps/gui/skin_engine/wps_internals.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/gui/skin_engine/wps_internals.h') diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index c9d5429484..be99ad82ae 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h @@ -361,6 +361,9 @@ struct wps_data #ifdef HAVE_ALBUMART OFFSETTYPE(struct skin_albumart *) albumart; int playback_aa_slot; + /* copy of albumart to survive skin resets, used to check if albumart + * dimensions changed on skin change */ + short last_albumart_width, last_albumart_height; #endif #ifdef HAVE_SKIN_VARIABLES -- cgit v1.2.3