mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Limit to 30 FPS in small stickers.
This commit is contained in:
@@ -1170,10 +1170,11 @@ std::unique_ptr<Lottie::SinglePlayer> LottiePlayerFromDocument(
|
||||
not_null<DocumentData*> document,
|
||||
LottieSize sizeTag,
|
||||
QSize box,
|
||||
Lottie::Quality quality,
|
||||
std::shared_ptr<Lottie::FrameRenderer> renderer) {
|
||||
const auto method = [&](auto &&...args) {
|
||||
return std::make_unique<Lottie::SinglePlayer>(
|
||||
std::forward<decltype(args)>(args)..., std::move(renderer));
|
||||
std::forward<decltype(args)>(args)..., quality, std::move(renderer));
|
||||
};
|
||||
return LottieFromDocument(method, document, sizeTag, box);
|
||||
}
|
||||
|
Reference in New Issue
Block a user