Fix animated emojis size

This commit is contained in:
Eric Kotato 2021-12-04 05:37:54 +03:00
parent ff390509eb
commit 87c829e960

View file

@ -137,7 +137,7 @@ QSize Sticker::Size() {
}
QSize Sticker::EmojiSize() {
const auto maxHeight = int(st::maxStickerSize / 256.0 * StickerHeight());
const auto maxHeight = int(st::maxStickerSize / 256.0 * StickerHeight() / 2);
const auto side = std::min(maxHeight, kMaxEmojiSizeFixed);
return { side, side };
}