Fix channel badges not scaling properly

This commit is contained in:
Rasmus Karlsson 2018-09-01 13:03:17 +00:00
parent 4752a3a4d4
commit eb04e1c3df

View file

@ -600,12 +600,13 @@ void TwitchChannel::refreshBadges()
auto jsonVersion = jsonVersion_->toObject(); auto jsonVersion = jsonVersion_->toObject();
auto emote = std::make_shared<Emote>(Emote{ auto emote = std::make_shared<Emote>(Emote{
EmoteName{}, EmoteName{},
ImageSet{Image::fromUrl( ImageSet{
{jsonVersion["image_url_1x"].toString()}), Image::fromUrl({jsonVersion["image_url_1x"].toString()},
Image::fromUrl( 1),
{jsonVersion["image_url_2x"].toString()}), Image::fromUrl({jsonVersion["image_url_2x"].toString()},
Image::fromUrl( .5),
{jsonVersion["image_url_4x"].toString()})}, Image::fromUrl({jsonVersion["image_url_4x"].toString()},
.25)},
Tooltip{jsonRoot["description"].toString()}, Tooltip{jsonRoot["description"].toString()},
Url{jsonVersion["clickURL"].toString()}}); Url{jsonVersion["clickURL"].toString()}});