mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Move Webm sticker to UnwrappedMedia.
This commit is contained in:
@@ -1974,7 +1974,7 @@ void Gif::validateThumbnail(
|
||||
{
|
||||
.options = (good ? Images::Option() : Images::Option::Blur),
|
||||
.outer = size,
|
||||
});
|
||||
}).toImage();
|
||||
}
|
||||
|
||||
void Gif::prepareThumbnail(QSize size, QSize frame) {
|
||||
@@ -2031,13 +2031,13 @@ void Gif::paint(
|
||||
_thumb = pixmap;
|
||||
_thumbGood = true;
|
||||
}
|
||||
p.drawPixmap(r.topLeft(), pixmap);
|
||||
p.drawImage(r.topLeft(), pixmap);
|
||||
} else {
|
||||
prepareThumbnail(r.size(), frame);
|
||||
if (_thumb.isNull()) {
|
||||
p.fillRect(r, st::overviewPhotoBg);
|
||||
} else {
|
||||
p.drawPixmap(r.topLeft(), _thumb);
|
||||
p.drawImage(r.topLeft(), _thumb);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user