mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +00:00
Fixed RatingComponent theme image path changes not triggering a proper resize (making pixelized SVGs).
This commit is contained in:
parent
2f02ebeada
commit
ed1612a341
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue