mirror of https://github.com/procxx/kepka.git
parent
578a80dfb8
commit
7170808d2b
|
@ -411,7 +411,9 @@ void Gif::draw(Painter &p, const QRect &r, TextSelection selection, crl::time ms
|
|||
} else {
|
||||
p.drawPixmap(rthumb.topLeft(), normal->pixBlurredSingle(_realParent->fullId(), _thumbw, _thumbh, usew, painth, roundRadius, roundCorners));
|
||||
}
|
||||
} else if (const auto blurred = _data->thumbnailInline()) {
|
||||
} else {
|
||||
_data->loadThumbnail(_realParent->fullId());
|
||||
if (const auto blurred = _data->thumbnailInline()) {
|
||||
p.drawPixmap(rthumb.topLeft(), blurred->pixBlurredSingle(_realParent->fullId(), _thumbw, _thumbh, usew, painth, roundRadius, roundCorners));
|
||||
} else if (!isRound) {
|
||||
const auto roundTop = (roundCorners & RectPart::TopLeft);
|
||||
|
@ -427,6 +429,7 @@ void Gif::draw(Painter &p, const QRect &r, TextSelection selection, crl::time ms
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (selected) {
|
||||
App::complexOverlayRect(p, rthumb, roundRadius, roundCorners);
|
||||
|
|
Loading…
Reference in New Issue