Fixed low quality of first frame for lottie emoji in userpic builder.
This commit is contained in:
parent
a58f9c6ebd
commit
9c43f9c3e2
|
@ -50,7 +50,7 @@ void PreviewPainter::setDocument(
|
|||
return;
|
||||
}
|
||||
_lifetime.destroy();
|
||||
const auto emojiSize = Size(_emojiSize);
|
||||
const auto emojiSize = Size(_size * style::DevicePixelRatio());
|
||||
if (sticker->isLottie()) {
|
||||
_player = std::make_unique<HistoryView::LottiePlayer>(
|
||||
ChatHelpers::LottiePlayerFromDocument(
|
||||
|
|
Loading…
Reference in New Issue