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)
|
if(!elem)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
bool imgChanged = false;
|
||||||
if(properties & PATH && elem->has("filledPath"))
|
if(properties & PATH && elem->has("filledPath"))
|
||||||
|
{
|
||||||
mFilledTexture = TextureResource::get(elem->get<std::string>("filledPath"), true);
|
mFilledTexture = TextureResource::get(elem->get<std::string>("filledPath"), true);
|
||||||
|
imgChanged = true;
|
||||||
|
}
|
||||||
if(properties & PATH && elem->has("unfilledPath"))
|
if(properties & PATH && elem->has("unfilledPath"))
|
||||||
|
{
|
||||||
mUnfilledTexture = TextureResource::get(elem->get<std::string>("unfilledPath"), true);
|
mUnfilledTexture = TextureResource::get(elem->get<std::string>("unfilledPath"), true);
|
||||||
|
imgChanged = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(imgChanged)
|
||||||
|
onSizeChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<HelpPrompt> RatingComponent::getHelpPrompts()
|
std::vector<HelpPrompt> RatingComponent::getHelpPrompts()
|
||||||
|
|
Loading…
Reference in a new issue