2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Remove test code for animated path thumbnails.

This commit is contained in:
John Preston
2021-07-02 20:21:06 +03:00
parent b22e2ffe1d
commit a8df3dcf91
4 changed files with 0 additions and 44 deletions

View File

@@ -468,22 +468,6 @@ void Sticker::paint(Painter &p, const QRect &clip, const PaintContext *context)
p.setOpacity(1);
}
if (context->pathGradient) {
const auto thumbSize = getThumbSize();
const auto w = thumbSize.width();
const auto h = thumbSize.height();
ChatHelpers::PaintStickerThumbnailPath(
p,
_dataMedia.get(),
QRect(
(st::stickerPanSize.width() - w) / 2,
(st::stickerPanSize.height() - h) / 2,
w,
h),
context->pathGradient);
}
return; AssertIsDebug();
prepareThumbnail();
if (_lottie && _lottie->ready()) {
const auto frame = _lottie->frame();