From ab0f12cf1cd788a15f8852b2f62808efd3bf2985 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 1 Nov 2022 18:22:32 +0400 Subject: [PATCH] Fix topic icon on retina screen. --- Telegram/SourceFiles/info/profile/info_profile_cover.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp index b59dfb519..336333c1b 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp @@ -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,