mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed low quality of first frame for lottie emoji in userpic builder.
This commit is contained in:
parent
a58f9c6ebd
commit
9c43f9c3e2
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ void PreviewPainter::setDocument(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_lifetime.destroy();
|
_lifetime.destroy();
|
||||||
const auto emojiSize = Size(_emojiSize);
|
const auto emojiSize = Size(_size * style::DevicePixelRatio());
|
||||||
if (sticker->isLottie()) {
|
if (sticker->isLottie()) {
|
||||||
_player = std::make_unique<HistoryView::LottiePlayer>(
|
_player = std::make_unique<HistoryView::LottiePlayer>(
|
||||||
ChatHelpers::LottiePlayerFromDocument(
|
ChatHelpers::LottiePlayerFromDocument(
|
||||||
|
|
Loading…
Add table
Reference in a new issue