2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use QImage bubbles background for some Media parts.

This commit is contained in:
John Preston
2021-08-20 13:12:07 +03:00
parent f4fdadd3b0
commit 784d57a2bc
36 changed files with 334 additions and 205 deletions

View File

@@ -1484,8 +1484,8 @@ HistoryView::PaintContext SessionController::bubblesContext(
//}
return {
.bubblesPattern = _bubblesBackgroundPattern.get(),
.viewport = viewport.translated(0, -args.initialShift),
.clip = args.clip.translated(0, -args.initialShift),
.viewport = viewport,
.clip = args.clip,
.now = crl::now(),
};
}

View File

@@ -454,7 +454,6 @@ public:
int visibleAreaTopGlobal = 0;
int visibleAreaWidth = 0;
QRect clip;
int initialShift = 0;
};
[[nodiscard]] HistoryView::PaintContext bubblesContext(
BubblesContextArgs &&args);