From 6467ba77397dd04f82332c8d0ca542b3c4d6b391 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 7 Jan 2023 21:43:54 +0300 Subject: [PATCH] Fixed painting of photo with spoiler in SendFilesBox on Retina. --- Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp index 74c417049..af8f1751c 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_prepare.cpp @@ -312,11 +312,8 @@ QPixmap BlurredPreviewFromPixmap(QPixmap pixmap, RectParts corners) { using namespace Images; return PixmapFromImage(Prepare( Blur(std::move(small), true), - image.size() / style::DevicePixelRatio(), - { - .options = RoundOptions(ImageRoundRadius::Large, corners), - .outer = image.size() / style::DevicePixelRatio(), - })); + image.size(), + { .options = RoundOptions(ImageRoundRadius::Large, corners) })); } } // namespace Ui