Fix video message frame request.

Fixes #24190.
This commit is contained in:
John Preston 2022-03-15 17:33:23 +04:00
parent 435d451f3f
commit 34f6c6b23f
1 changed files with 6 additions and 0 deletions

View File

@ -358,6 +358,9 @@ void Gif::draw(Painter &p, const PaintContext &context) const {
usex = width() - usew;
}
}
if (isUnwrapped()) {
accumulate_min(usew, painth);
}
if (rtl()) usex = width() - usex - usew;
QRect rthumb(style::rtlrect(usex + paintx, painty, usew, painth, width()));
@ -844,6 +847,9 @@ TextState Gif::textState(QPoint point, StateRequest request) const {
usex = width() - usew;
}
}
if (isUnwrapped()) {
accumulate_min(usew, painth);
}
if (rtl()) usex = width() - usex - usew;
if (via || reply || forwarded) {