diff --git a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp index b59dfb5194..336333c1b1 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,