diff --git a/Telegram/SourceFiles/boxes/sticker_set_box.cpp b/Telegram/SourceFiles/boxes/sticker_set_box.cpp index 9b7820f96..b5de2db7a 100644 --- a/Telegram/SourceFiles/boxes/sticker_set_box.cpp +++ b/Telegram/SourceFiles/boxes/sticker_set_box.cpp @@ -778,15 +778,6 @@ void StickerSetBox::Inner::paintSticker( } QPoint ppos = position + QPoint((st::stickersSize.width() - w) / 2, (st::stickersSize.height() - h) / 2); - - ChatHelpers::PaintStickerThumbnailPath( - p, - media.get(), - QRect(ppos, QSize(w, h)), - _pathGradient.get()); - return; AssertIsDebug(); - - if (element.animated && element.animated->ready()) { const auto frame = element.animated->frame(); p.drawImage( diff --git a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp index 6b40e3bab..fd4966f75 100644 --- a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp +++ b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp @@ -828,16 +828,6 @@ void FieldAutocomplete::Inner::paintEvent(QPaintEvent *e) { h = std::max(qRound(coef * document->dimensions.height()), 1); } - - QPoint ppos = pos + QPoint((st::stickerPanSize.width() - w) / 2, (st::stickerPanSize.height() - h) / 2); - ChatHelpers::PaintStickerThumbnailPath( - p, - media.get(), - QRect(ppos, QSize(w, h)), - _pathGradient.get()); - continue; AssertIsDebug(); - - if (sticker.animated && sticker.animated->ready()) { const auto frame = sticker.animated->frame(); const auto size = frame.size() / cIntRetinaFactor(); diff --git a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp index 2ba62c80c..052b76e6b 100644 --- a/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp +++ b/Telegram/SourceFiles/chat_helpers/stickers_list_widget.cpp @@ -1897,15 +1897,6 @@ void StickersListWidget::paintSticker(Painter &p, Set &set, int y, int section, } auto ppos = pos + QPoint((_singleSize.width() - w) / 2, (_singleSize.height() - h) / 2); - - PaintStickerThumbnailPath( - p, - media.get(), - QRect(ppos, QSize{ w, h }), - _pathGradient.get()); - return; AssertIsDebug(); - - if (sticker.animated && sticker.animated->ready()) { auto request = Lottie::FrameRequest(); request.box = boundingBoxSize() * cIntRetinaFactor(); diff --git a/Telegram/SourceFiles/inline_bots/inline_bot_layout_internal.cpp b/Telegram/SourceFiles/inline_bots/inline_bot_layout_internal.cpp index 6dc13d9f3..aab6e043b 100644 --- a/Telegram/SourceFiles/inline_bots/inline_bot_layout_internal.cpp +++ b/Telegram/SourceFiles/inline_bots/inline_bot_layout_internal.cpp @@ -468,22 +468,6 @@ void Sticker::paint(Painter &p, const QRect &clip, const PaintContext *context) p.setOpacity(1); } - if (context->pathGradient) { - const auto thumbSize = getThumbSize(); - const auto w = thumbSize.width(); - const auto h = thumbSize.height(); - ChatHelpers::PaintStickerThumbnailPath( - p, - _dataMedia.get(), - QRect( - (st::stickerPanSize.width() - w) / 2, - (st::stickerPanSize.height() - h) / 2, - w, - h), - context->pathGradient); - } - return; AssertIsDebug(); - prepareThumbnail(); if (_lottie && _lottie->ready()) { const auto frame = _lottie->frame();