2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

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

View File

@@ -1539,7 +1539,7 @@ void StickersBox::Inner::paintRowThumbnail(
const auto y = _st.photoPosition.y() + (_st.photoSize - row->pixh) / 2;
if (row->lottie && row->lottie->ready()) {
const auto frame = row->lottie->frame();
const auto size = frame.size() / cIntRetinaFactor();
const auto size = frame.size() / style::DevicePixelRatio();
p.drawImage(
QRect(
left + (_st.photoSize - size.width()) / 2,
@@ -1578,7 +1578,7 @@ void StickersBox::Inner::validateLottieAnimation(not_null<Row*> row) {
row->thumbnailMedia.get(),
row->stickerMedia.get(),
ChatHelpers::StickerLottieSize::SetsListThumbnail,
QSize(_st.photoSize, _st.photoSize) * cIntRetinaFactor());
QSize(_st.photoSize, _st.photoSize) * style::DevicePixelRatio());
if (!player) {
return;
}