Fixed wrong emoji sticker scaling
This commit is contained in:
parent
a562e8b195
commit
ba4e85388d
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ QSize Sticker::size() {
|
|||
constexpr auto kIdealStickerSize = 512;
|
||||
const auto zoom = GetEmojiStickerZoom(&_document->session());
|
||||
const auto convert = [&](int size) {
|
||||
return int(size * st::maxStickerSize * zoom / kIdealStickerSize);
|
||||
return int(size * st::historyStickerHeight * zoom / kIdealStickerSize);
|
||||
};
|
||||
_size = QSize(convert(_size.width()), convert(_size.height()));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue