mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-09 07:47:33 +00:00
Fix crash and pause in stickers panel with webm.
This commit is contained in:
parent
8e749173de
commit
f1d9cca119
@ -2090,13 +2090,13 @@ void StickersListWidget::paintSticker(
|
||||
sticker.savedFrame.setDevicePixelRatio(cRetinaFactor());
|
||||
}
|
||||
set.lottiePlayer->unpause(sticker.lottie);
|
||||
} else if (sticker.webm && sticker.webm->ready()) {
|
||||
} else if (sticker.webm && sticker.webm->started()) {
|
||||
p.drawPixmapLeft(
|
||||
ppos,
|
||||
width(),
|
||||
sticker.webm->current(
|
||||
{ .frame = size, .keepAlpha = true },
|
||||
now));
|
||||
paused ? 0 : now));
|
||||
} else {
|
||||
const auto image = media->getStickerSmall();
|
||||
const auto pixmap = !sticker.savedFrame.isNull()
|
||||
|
Loading…
Reference in New Issue
Block a user