mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-18 22:17:01 +00:00
Fix sticker preview background.
This commit is contained in:
parent
d1cb558b43
commit
1745ccf0bf
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user