diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-10-27 22:53:21 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-10-27 22:53:21 +0200 |
commit | 48ecc2b45a7b5de876162526ff2b583c2e70efd7 (patch) | |
tree | 7c80b18eda8166c45b5b822af8d3896ef392cda1 /src/MxcImageProvider.cpp | |
parent | Disable Wconversion again (diff) | |
download | nheko-48ecc2b45a7b5de876162526ff2b583c2e70efd7.tar.xz |
fix blurry thumbnails
Diffstat (limited to '')
-rw-r--r-- | src/MxcImageProvider.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MxcImageProvider.cpp b/src/MxcImageProvider.cpp index 0dc96e5a..cd7e3946 100644 --- a/src/MxcImageProvider.cpp +++ b/src/MxcImageProvider.cpp @@ -169,9 +169,9 @@ MxcImageProvider::download(const QString &id, mtx::http::ThumbOpts opts; 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 = - 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"; http::client()->get_thumbnail( opts, |