mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Re-enable emote scale
This commit is contained in:
parent
4f4d717a52
commit
5b23aff58d
1 changed files with 5 additions and 2 deletions
|
@ -117,8 +117,11 @@ void EmoteElement::addToContainer(MessageLayoutContainer &container,
|
||||||
auto image = this->emote_->images.getImage(container.getScale());
|
auto image = this->emote_->images.getImage(container.getScale());
|
||||||
if (image->isEmpty()) return;
|
if (image->isEmpty()) return;
|
||||||
|
|
||||||
auto size = QSize(int(container.getScale() * image->width()),
|
auto emoteScale = getSettings()->emoteScale.getValue();
|
||||||
int(container.getScale() * image->height()));
|
|
||||||
|
auto size =
|
||||||
|
QSize(int(container.getScale() * image->width() * emoteScale),
|
||||||
|
int(container.getScale() * image->height() * emoteScale));
|
||||||
|
|
||||||
container.addElement((new ImageLayoutElement(*this, image, size))
|
container.addElement((new ImageLayoutElement(*this, image, size))
|
||||||
->setLink(this->getLink()));
|
->setLink(this->getLink()));
|
||||||
|
|
Loading…
Reference in a new issue