mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix display of stickers in media viewer.
This commit is contained in:
parent
48fea47d16
commit
093d89db83
1 changed files with 7 additions and 4 deletions
|
@ -3098,7 +3098,10 @@ void OverlayWidget::paintEvent(QPaintEvent *e) {
|
|||
const auto r = e->rect();
|
||||
const auto region = e->region();
|
||||
const auto contentShown = _photo || documentContentShown();
|
||||
const auto bgRegion = contentShown
|
||||
const auto opaqueContentShown = contentShown
|
||||
&& (!_document
|
||||
|| (!_document->isVideoMessage() && !_document->sticker()));
|
||||
const auto bgRegion = opaqueContentShown
|
||||
? (region - contentRect())
|
||||
: region;
|
||||
|
||||
|
@ -3385,9 +3388,9 @@ void OverlayWidget::paintTransformedStaticContent(Painter &p) {
|
|||
const auto rect = contentRect();
|
||||
|
||||
PainterHighQualityEnabler hq(p);
|
||||
if ((!_document || !_documentMedia->getStickerLarge())
|
||||
&& (_staticContent.isNull()
|
||||
|| _staticContent.hasAlpha())) {
|
||||
if ((!_document
|
||||
|| (!_document->sticker() && !_document->isVideoMessage()))
|
||||
&& (_staticContent.isNull() || _staticContent.hasAlpha())) {
|
||||
p.fillRect(rect, _transparentBrush);
|
||||
}
|
||||
if (_staticContent.isNull()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue