mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed gif emotes being offset
This commit is contained in:
parent
bc93ef7214
commit
c79f88ed10
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ void ImageLayoutElement::paintAnimated(QPainter &painter, int yOffset)
|
||||||
if (this->image.getPixmap() != nullptr) {
|
if (this->image.getPixmap() != nullptr) {
|
||||||
// fourtf: make it use qreal values
|
// fourtf: make it use qreal values
|
||||||
QRect rect = this->getRect();
|
QRect rect = this->getRect();
|
||||||
rect.moveTop(yOffset);
|
rect.moveTop(rect.y() + yOffset);
|
||||||
painter.drawPixmap(QRectF(rect), *this->image.getPixmap(), QRectF());
|
painter.drawPixmap(QRectF(rect), *this->image.getPixmap(), QRectF());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue