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++
Add Copy blendmode to the floating-point test
Dmitry Kazakov1943b14fe7a6
diff --git a/libs/pigment/tests/TestCompositeOpInversion.cpp b/libs/pigment/tests/TestCompositeOpInversion.cppindex e4edd090c8..f50be99976 100644--- a/libs/pigment/tests/TestCompositeOpInversion.cpp+++ b/libs/pigment/tests/TestCompositeOpInversion.cpp@@ -693,7 +693,8 @@ const KoCompositeOp* createOp(const KoColorSpace *cs, const QString &id, bool isid == COMPOSITE_ALPHA_DARKEN ||id == COMPOSITE_DESTINATION_ATOP ||id == COMPOSITE_DESTINATION_IN ||- id == COMPOSITE_ERASE) {+ id == COMPOSITE_ERASE ||+ id == COMPOSITE_COPY) {op = cs->compositeOp(id);}@@ -842,7 +843,8 @@ void TestCompositeOpInversion::testFloatModes()id != COMPOSITE_ALPHA_DARKEN &&id != COMPOSITE_DESTINATION_ATOP &&id != COMPOSITE_DESTINATION_IN &&- id != COMPOSITE_ERASE) {+ id != COMPOSITE_ERASE &&+ id != COMPOSITE_COPY) {KoColor resultColorU2 = dstColorU;opU2->composite(resultColorU2.data(), 0, srcColorU.data(), 0,@@ -1128,6 +1130,7 @@ void TestCompositeOpInversion::testFloatModes_data()sdrPreservingIds << COMPOSITE_DESTINATION_IN;sdrPreservingIds << COMPOSITE_DESTINATION_ATOP;sdrPreservingIds << COMPOSITE_ERASE;+ sdrPreservingIds << COMPOSITE_COPY;QStringList strictSdrPreservingIds;strictSdrPreservingIds << COMPOSITE_MULT;