From 1745ccf0bf3eacfdbbf8ae9653ef206f82bdf563 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 26 May 2022 16:51:18 +0400 Subject: [PATCH] Fix sticker preview background. --- Telegram/SourceFiles/boxes/sticker_preview_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/sticker_preview_box.cpp b/Telegram/SourceFiles/boxes/sticker_preview_box.cpp index 5f201a260..d40bff675 100644 --- a/Telegram/SourceFiles/boxes/sticker_preview_box.cpp +++ b/Telegram/SourceFiles/boxes/sticker_preview_box.cpp @@ -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(