mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 01:45:06 +00:00
Fix sticker preview background.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user