mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Fix blurred document thumbnails.
This commit is contained in:
parent
729da4a6b4
commit
c8b61366d3
1 changed files with 5 additions and 2 deletions
|
@ -243,8 +243,11 @@ void HistoryDocument::draw(Painter &p, const QRect &r, TextSelection selection,
|
|||
if (const auto normal = _data->thumbnail()) {
|
||||
if (normal->loaded()) {
|
||||
thumb = normal->pixSingle(_realParent->fullId(), thumbed->_thumbw, 0, st::msgFileThumbSize, st::msgFileThumbSize, roundRadius);
|
||||
} else if (const auto blurred = _data->thumbnailInline()) {
|
||||
thumb = blurred->pixBlurredSingle(_realParent->fullId(), thumbed->_thumbw, 0, st::msgFileThumbSize, st::msgFileThumbSize, roundRadius);
|
||||
} else {
|
||||
_data->loadThumbnail(_realParent->fullId());
|
||||
if (const auto blurred = _data->thumbnailInline()) {
|
||||
thumb = blurred->pixBlurredSingle(_realParent->fullId(), thumbed->_thumbw, 0, st::msgFileThumbSize, st::msgFileThumbSize, roundRadius);
|
||||
}
|
||||
}
|
||||
}
|
||||
p.drawPixmap(rthumb.topLeft(), thumb);
|
||||
|
|
Loading…
Add table
Reference in a new issue