From ed1612a341b5379d69385043c9dc2c3d85321766 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Fri, 16 May 2014 17:49:02 -0500 Subject: [PATCH] Fixed RatingComponent theme image path changes not triggering a proper resize (making pixelized SVGs). --- src/components/RatingComponent.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/RatingComponent.cpp b/src/components/RatingComponent.cpp index df77bb642..daa00e863 100644 --- a/src/components/RatingComponent.cpp +++ b/src/components/RatingComponent.cpp @@ -145,10 +145,20 @@ void RatingComponent::applyTheme(const std::shared_ptr& theme, const if(!elem) return; + bool imgChanged = false; if(properties & PATH && elem->has("filledPath")) + { mFilledTexture = TextureResource::get(elem->get("filledPath"), true); + imgChanged = true; + } if(properties & PATH && elem->has("unfilledPath")) + { mUnfilledTexture = TextureResource::get(elem->get("unfilledPath"), true); + imgChanged = true; + } + + if(imgChanged) + onSizeChanged(); } std::vector RatingComponent::getHelpPrompts()