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++

Revert to normal blend mode for best performance

Maciej Jesionowskia106ce97f3a4
diff --git a/plugins/filters/colors/KisFilterFastColorOverlay.cpp b/plugins/filters/colors/KisFilterFastColorOverlay.cpp
index fbb3f11017..300a0529b1 100644
--- a/plugins/filters/colors/KisFilterFastColorOverlay.cpp
+++ b/plugins/filters/colors/KisFilterFastColorOverlay.cpp
@@ -107,5 +107,8 @@ int KisFilterFastColorOverlay::defaultOpacity()
QString KisFilterFastColorOverlay::defaultCompositeOp()
{
- return COMPOSITE_SCREEN;
+ // Use the normal blending mode (OVER is "normal").
+ // This offers the best performance, but will change the color of all opaque pixels,
+ // which may be unexpected in some situations (for example, coloring a scanned sketch on a white background).
+ return COMPOSITE_OVER;
}