2
0
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:
John Preston
2022-08-04 13:35:08 +03:00
parent 5b0d023a88
commit f8e22210e7
33 changed files with 458 additions and 300 deletions

View File

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