mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Fix video message forward reply info paint.
This commit is contained in:
parent
1c6fac337e
commit
eba606e85e
1 changed files with 5 additions and 0 deletions
|
@ -652,6 +652,11 @@ void Gif::draw(Painter &p, const PaintContext &context) const {
|
|||
auto breakEverywhere = (forwardedHeightReal > forwardedHeight);
|
||||
forwarded->text.drawElided(p, rectx, recty + st::msgReplyPadding.top(), rectw, kMaxGifForwardedBarLines, style::al_left, 0, -1, 0, breakEverywhere);
|
||||
p.restoreTextPalette();
|
||||
|
||||
const auto skip = std::min(
|
||||
forwarded->text.countHeight(rectw),
|
||||
kMaxGifForwardedBarLines * st::msgServiceNameFont->height);
|
||||
recty += skip;
|
||||
} else if (via) {
|
||||
p.setFont(st::msgServiceNameFont);
|
||||
p.drawTextLeft(rectx, recty + st::msgReplyPadding.top(), 2 * rectx + rectw, via->text);
|
||||
|
|
Loading…
Add table
Reference in a new issue