From 24fed8105c4afd15207c0b2097210366e0c2d54a Mon Sep 17 00:00:00 2001 From: John Preston <johnprestonmail@gmail.com> Date: Mon, 25 May 2020 18:16:56 +0400 Subject: [PATCH] Fix stickers panel on Retina screens. --- Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp index 2d1125c964..5c9a436293 100644 --- a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp @@ -798,6 +798,7 @@ void StickersListWidget::Footer::paintSetIcon( const auto size = frame.size() / cIntRetinaFactor(); if (icon.savedFrame.isNull()) { icon.savedFrame = QPixmap::fromImage(frame, Qt::ColorOnly); + icon.savedFrame.setDevicePixelRatio(cRetinaFactor()); } p.drawImage( QRect( @@ -1850,6 +1851,7 @@ void StickersListWidget::paintSticker(Painter &p, Set &set, int y, int section, frame); if (sticker.savedFrame.isNull()) { sticker.savedFrame = QPixmap::fromImage(frame, Qt::ColorOnly); + sticker.savedFrame.setDevicePixelRatio(cRetinaFactor()); } set.lottiePlayer->unpause(sticker.animated); } else {