summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2013-02-26 20:43:42 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2013-02-26 20:47:46 +1100
commit657b91acfa86430750cebb82d0ea3aaf635953bf (patch)
tree3f23868cd8ee822b909b7ee469574cfe9b59709d /apps/gui/skin_engine
parent8df11853b279c86ed746a6f1ea78da4db505e1b6 (diff)
downloadrockbox-657b91acfa86430750cebb82d0ea3aaf635953bf.tar.gz
rockbox-657b91acfa86430750cebb82d0ea3aaf635953bf.zip
skin engine: Relax the AA load width/height checks
d6c6c07 changed the AA load tag to make sure the image width/heights fit in the viewport, Revert this because it doesn't actually make sense to check it here. Change-Id: I3fe4b074ef8fe88560f2f894ec651027ea3642f4
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r--apps/gui/skin_engine/skin_parser.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index cb185d88ba..94396640f2 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -1198,13 +1198,9 @@ static int parse_albumart_load(struct skin_element* element,
/* if we got here, we parsed everything ok .. ! */
if (aa->width < 0)
aa->width = 0;
- else if (aa->width > curr_vp->vp.width)
- aa->width = curr_vp->vp.width;
if (aa->height < 0)
aa->height = 0;
- else if (aa->height > curr_vp->vp.height)
- aa->height = curr_vp->vp.height;
if (swap_for_rtl)
aa->x = (curr_vp->vp.width - aa->width - aa->x);