diff options
author | 23rd <23rd@vivaldi.net> | 2024-03-24 01:04:33 +0300 |
---|---|---|
committer | 23rd <23rd@vivaldi.net> | 2024-03-24 07:10:07 +0300 |
commit | d03d50ef0d398123e64931a1b69804e94172f7cd (patch) | |
tree | 2b4012883ee47c0bdb6ec6e812d8ed0e6359edf9 /Telegram/SourceFiles/payments/payments_form.cpp | |
parent | 58fcedab64f15b4281e017b3383ef6790ecc6af2 (diff) |
Removed cIntRetinaFactor and cRetinaFactor.
Diffstat (limited to 'Telegram/SourceFiles/payments/payments_form.cpp')
-rw-r--r-- | Telegram/SourceFiles/payments/payments_form.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Telegram/SourceFiles/payments/payments_form.cpp b/Telegram/SourceFiles/payments/payments_form.cpp index 9ca9bc6681..d39b177373 100644 --- a/Telegram/SourceFiles/payments/payments_form.cpp +++ b/Telegram/SourceFiles/payments/payments_form.cpp @@ -294,15 +294,15 @@ QImage Form::prepareThumbnail( Qt::KeepAspectRatio, Qt::SmoothTransformation); result = Images::Round(std::move(result), ImageRoundRadius::Large); - result.setDevicePixelRatio(cRetinaFactor()); + result.setDevicePixelRatio(style::DevicePixelRatio()); return result; } QImage Form::prepareEmptyThumbnail() const { auto result = QImage( - st::paymentsThumbnailSize * cIntRetinaFactor(), + st::paymentsThumbnailSize * style::DevicePixelRatio(), QImage::Format_ARGB32_Premultiplied); - result.setDevicePixelRatio(cRetinaFactor()); + result.setDevicePixelRatio(style::DevicePixelRatio()); result.fill(Qt::transparent); return result; } |