mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Removed cIntRetinaFactor and cRetinaFactor.
This commit is contained in:
@@ -1221,7 +1221,7 @@ void StickerSetBox::Inner::setupLottie(int index) {
|
||||
getLottiePlayer(),
|
||||
element.documentMedia.get(),
|
||||
ChatHelpers::StickerLottieSize::StickerSet,
|
||||
boundingBoxSize() * cIntRetinaFactor());
|
||||
boundingBoxSize() * style::DevicePixelRatio());
|
||||
}
|
||||
|
||||
void StickerSetBox::Inner::setupWebm(int index) {
|
||||
@@ -1345,7 +1345,7 @@ void StickerSetBox::Inner::paintSticker(
|
||||
} else if (element.lottie && element.lottie->ready()) {
|
||||
lottieFrame = element.lottie->frame();
|
||||
p.drawImage(
|
||||
QRect(ppos, lottieFrame.size() / cIntRetinaFactor()),
|
||||
QRect(ppos, lottieFrame.size() / style::DevicePixelRatio()),
|
||||
lottieFrame);
|
||||
|
||||
_lottiePlayer->unpause(element.lottie);
|
||||
|
||||
Reference in New Issue
Block a user