Fixed RatingComponent theme image path changes not triggering a proper resize (making pixelized SVGs).

This commit is contained in:
Aloshi 2014-05-16 17:49:02 -05:00
parent 2f02ebeada
commit ed1612a341

View file

@ -145,10 +145,20 @@ void RatingComponent::applyTheme(const std::shared_ptr<ThemeData>& theme, const
if(!elem)
return;
bool imgChanged = false;
if(properties & PATH && elem->has("filledPath"))
{
mFilledTexture = TextureResource::get(elem->get<std::string>("filledPath"), true);
imgChanged = true;
}
if(properties & PATH && elem->has("unfilledPath"))
{
mUnfilledTexture = TextureResource::get(elem->get<std::string>("unfilledPath"), true);
imgChanged = true;
}
if(imgChanged)
onSizeChanged();
}
std::vector<HelpPrompt> RatingComponent::getHelpPrompts()