Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Reenable the displayRenderer conversion for qt5

Wolthera van Hövell tot Westerflierbb553eb29bf5
diff --git a/libs/ui/KisReferenceImagesDecoration.cpp b/libs/ui/KisReferenceImagesDecoration.cpp
index bfb159e03e..40fb7a7236 100644
--- a/libs/ui/KisReferenceImagesDecoration.cpp
+++ b/libs/ui/KisReferenceImagesDecoration.cpp
@@ -147,7 +147,11 @@ void KisReferenceImagesDecoration::drawDecoration(QPainter &gc, const QRectF &/*
}
if (!d->buffer.image.isNull()) {
+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
gc.drawImage(d->buffer.position, d->buffer.image);
+#else
+ gc.drawImage(d->buffer.position, canvas->displayRendererInterface()->convertImageToDisplayColorSpace(d->buffer.image));
+#endif
}
}
}