Removed cIntRetinaFactor and cRetinaFactor.

This commit is contained in:
23rd
2024-03-24 01:04:33 +03:00
parent 58fcedab64
commit d03d50ef0d
64 changed files with 411 additions and 270 deletions
@@ -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);