diff options
author | Thomas Martitz <kugel@rockbox.org> | 2013-05-14 07:03:44 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2013-06-09 17:39:08 +0200 |
commit | 58b4e71d3244b3c433e1fd3b494d17379bf57c48 (patch) | |
tree | 69530502e78b93fd09ec3db3faa59d91b765f438 /apps/gui/skin_engine/wps_internals.h | |
parent | 280a0eb27ee0f9661c44e9230f7f59b2551b18af (diff) | |
download | rockbox-58b4e71d3244b3c433e1fd3b494d17379bf57c48.tar.gz rockbox-58b4e71d3244b3c433e1fd3b494d17379bf57c48.zip |
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 <kugel@rockbox.org>
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
Diffstat (limited to 'apps/gui/skin_engine/wps_internals.h')
-rw-r--r-- | apps/gui/skin_engine/wps_internals.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 | |||
361 | #ifdef HAVE_ALBUMART | 361 | #ifdef HAVE_ALBUMART |
362 | OFFSETTYPE(struct skin_albumart *) albumart; | 362 | OFFSETTYPE(struct skin_albumart *) albumart; |
363 | int playback_aa_slot; | 363 | int playback_aa_slot; |
364 | /* copy of albumart to survive skin resets, used to check if albumart | ||
365 | * dimensions changed on skin change */ | ||
366 | short last_albumart_width, last_albumart_height; | ||
364 | #endif | 367 | #endif |
365 | 368 | ||
366 | #ifdef HAVE_SKIN_VARIABLES | 369 | #ifdef HAVE_SKIN_VARIABLES |