mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Removed cIntRetinaFactor and cRetinaFactor.
This commit is contained in:
@@ -449,7 +449,7 @@ void Row::setupLabels(const Set &set) {
|
||||
}
|
||||
|
||||
void Row::setupPreview(const Set &set) {
|
||||
const auto size = st::manageEmojiPreview * cIntRetinaFactor();
|
||||
const auto size = st::manageEmojiPreview * style::DevicePixelRatio();
|
||||
const auto original = QImage(set.previewPath);
|
||||
const auto full = original.height();
|
||||
auto &&preview = ranges::views::zip(_preview, ranges::views::ints(0, int(_preview.size())));
|
||||
@@ -457,7 +457,7 @@ void Row::setupPreview(const Set &set) {
|
||||
pixmap = Ui::PixmapFromImage(original.copy(
|
||||
{ full * index, 0, full, full }
|
||||
).scaledToWidth(size, Qt::SmoothTransformation));
|
||||
pixmap.setDevicePixelRatio(cRetinaFactor());
|
||||
pixmap.setDevicePixelRatio(style::DevicePixelRatio());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user