Convert blurhash image format on worker thread

Not only should this prevent hickups, it also fixes a potential crash.
This commit is contained in:
Nicolas Werner 2021-12-30 02:25:47 +01:00
parent 203ddb20de
commit 4428388b3f
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -38,5 +38,5 @@ BlurhashRunnable::run()
(int)decoded.width * 3, (int)decoded.width * 3,
QImage::Format_RGB888); QImage::Format_RGB888);
emit done(std::move(image)); emit done(image.convertToFormat(QImage::Format_RGB32));
} }