Fix topic icon on retina screen.

This commit is contained in:
John Preston 2022-11-01 18:22:32 +04:00
parent fba0f0c49b
commit ab0f12cf1c
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ TopicIconView::TopicIconView(
void TopicIconView::paintInRect(QPainter &p, QRect rect) {
const auto paint = [&](const QImage &image) {
const auto size = image.size() / image.devicePixelRatio();
const auto size = image.size() / style::DevicePixelRatio();
p.drawImage(
rect.x() + (rect.width() - size.width()) / 2,
rect.y() + (rect.height() - size.height()) / 2,