mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Merge pull request #823 from pphop/pphop-fix-badge-scaling
fixed badges scaling with emote scale slider #817
This commit is contained in:
commit
e3ada8ed2c
1 changed files with 4 additions and 1 deletions
|
@ -121,7 +121,10 @@ void EmoteElement::addToContainer(MessageLayoutContainer &container,
|
||||||
if (image->isEmpty())
|
if (image->isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
auto emoteScale = getSettings()->emoteScale.getValue();
|
auto emoteScale =
|
||||||
|
this->getFlags().hasAny(MessageElementFlag::Badges)
|
||||||
|
? 1
|
||||||
|
: getSettings()->emoteScale.getValue();
|
||||||
|
|
||||||
auto size =
|
auto size =
|
||||||
QSize(int(container.getScale() * image->width() * emoteScale),
|
QSize(int(container.getScale() * image->width() * emoteScale),
|
||||||
|
|
Loading…
Reference in a new issue