Fixed painting of photo with spoiler in SendFilesBox on Retina.

This commit is contained in:
23rd 2023-01-07 21:43:54 +03:00 committed by John Preston
parent 8de3b2c0d3
commit 6467ba7739

View file

@ -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