2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Don't blend SoftLight patterns in realtime.

This commit is contained in:
John Preston
2021-08-13 20:19:06 +03:00
parent 2b46f87d7b
commit b9a9520ef5
7 changed files with 92 additions and 59 deletions

View File

@@ -455,12 +455,12 @@ void Generator::paintHistoryBackground() {
} else {
PainterHighQualityEnabler hq(*_p);
auto fill = QRect(_topBar.x(), _topBar.y(), _topBar.width(), _body.height());
QRect to, from;
ComputeBackgroundRects(fill, background.size(), to, from);
auto fill = QSize(_topBar.width(), _body.height());
const auto rects = ComputeBackgroundRects(fill, background.size());
auto to = rects.to;
to.moveTop(to.top() + fromy);
to.moveTopLeft(to.topLeft() + _history.topLeft());
_p->drawImage(to, background, from);
_p->drawImage(to, background, rects.from);
}
_p->setClipping(false);
}