Fix sticker preview background.

This commit is contained in:
John Preston 2022-05-26 16:51:18 +04:00
parent d1cb558b43
commit 1745ccf0bf

View File

@ -298,9 +298,9 @@ void ShowStickerPreviewBox(
crl::async([=] {
using Option = Images::Option;
auto back = color
? SolidColorImage(fill, *color)
? SolidColorImage(area, *color)
: request.background.waitingForNegativePattern()
? SolidColorImage(fill, Qt::black)
? SolidColorImage(area, Qt::black)
: Ui::CacheBackground(request).image;
const auto factor = style::DevicePixelRatio();
auto cropped = back.copy(QRect(