2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Implement animated spoilers.

This commit is contained in:
John Preston
2022-09-17 00:23:27 +04:00
parent 4975254cc1
commit 749fb52113
291 changed files with 814 additions and 556 deletions

View File

@@ -119,7 +119,7 @@ void Widget::updateContentHeight() {
}
void Widget::paintEvent(QPaintEvent *e) {
Painter p(this);
auto p = QPainter(this);
auto opacityAnimating = _a_opacity.animating();
@@ -148,7 +148,7 @@ void Widget::paintEvent(QPaintEvent *e) {
}
}
void Widget::paintContent(Painter &p) {
void Widget::paintContent(QPainter &p) {
auto inner = innerRect();
Ui::FillRoundRect(p, inner, st::emojiPanBg, ImageRoundRadius::Small, RectPart::FullTop | RectPart::FullBottom);