fixed gif emotes being offset

This commit is contained in:
fourtf 2018-01-13 03:08:31 +01:00
parent bc93ef7214
commit c79f88ed10

View file

@ -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());
} }
} }