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++
Fix Overlay blendmode regression
Dmitry Kazakov085bd5ea4c22
diff --git a/libs/pigment/compositeops/KoCompositeOpFunctions.h b/libs/pigment/compositeops/KoCompositeOpFunctions.hindex dd5c910c58..1d306b5c21 100644--- a/libs/pigment/compositeops/KoCompositeOpFunctions.h+++ b/libs/pigment/compositeops/KoCompositeOpFunctions.h@@ -648,7 +648,11 @@ template<class T>inline T cfOver(T src, T dst) { Q_UNUSED(dst); return src; }template<class T>-struct CFOverlay : CFHardLight<T> {};+struct CFOverlay : CFHardLight<T> {+ static inline T composeChannel(T src, T dst) {+ return CFHardLight<T>::composeChannel(dst,src);+ }+};template<class T>inline T cfMultiply(T src, T dst) { return Arithmetic::mul(src, dst); }