Fixed low quality of first frame for lottie emoji in userpic builder.

This commit is contained in:
23rd 2023-01-26 12:27:48 +03:00 committed by John Preston
parent a58f9c6ebd
commit 9c43f9c3e2
1 changed files with 1 additions and 1 deletions

View File

@ -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(