mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 04:28:49 +03:00
fix blurry thumbnails
This commit is contained in:
parent
ac0f011221
commit
48ecc2b45a
1 changed files with 2 additions and 2 deletions
|
@ -169,9 +169,9 @@ MxcImageProvider::download(const QString &id,
|
||||||
|
|
||||||
mtx::http::ThumbOpts opts;
|
mtx::http::ThumbOpts opts;
|
||||||
opts.mxc_url = "mxc://" + id.toStdString();
|
opts.mxc_url = "mxc://" + id.toStdString();
|
||||||
opts.width = static_cast<uint8_t>(requestedSize.width() > 0 ? requestedSize.width() : -1);
|
opts.width = static_cast<uint16_t>(requestedSize.width() > 0 ? requestedSize.width() : -1);
|
||||||
opts.height =
|
opts.height =
|
||||||
static_cast<uint8_t>(requestedSize.height() > 0 ? requestedSize.height() : -1);
|
static_cast<uint16_t>(requestedSize.height() > 0 ? requestedSize.height() : -1);
|
||||||
opts.method = crop ? "crop" : "scale";
|
opts.method = crop ? "crop" : "scale";
|
||||||
http::client()->get_thumbnail(
|
http::client()->get_thumbnail(
|
||||||
opts,
|
opts,
|
||||||
|
|
Loading…
Reference in a new issue