fix blurry thumbnails

pull/1222/head
Nicolas Werner 2 years ago
parent ac0f011221
commit 48ecc2b45a
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 4
      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,

Loading…
Cancel
Save