[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [krita] libs/image: FIX: Gauss Circular Mask Antialiasing
From: Ivan Yossi <null () kde ! org>
Date: 2018-06-01 5:21:41
Message-ID: E1fOcVR-00083l-76 () code ! kde ! org
[Download RAW message or body]
Git commit b55ed74ac98b6345e9885340e7385745de6d1957 by Ivan Yossi.
Committed on 01/06/2018 at 04:00.
Pushed by ivany into branch 'master'.
FIX: Gauss Circular Mask Antialiasing
A double declaration caused the mask not to apply
M +2 -3 libs/image/kis_brush_mask_applicator_factories.cpp
https://commits.kde.org/krita/b55ed74ac98b6345e9885340e7385745de6d1957
diff --git a/libs/image/kis_brush_mask_applicator_factories.cpp \
b/libs/image/kis_brush_mask_applicator_factories.cpp index 049d9120f97..7347e736a0a \
100644
--- a/libs/image/kis_brush_mask_applicator_factories.cpp
+++ b/libs/image/kis_brush_mask_applicator_factories.cpp
@@ -209,11 +209,10 @@ \
FastRowProcessor::process<Vc::CurrentImplementation::current()>(float* buffer, i \
Vc::float_m fadeStartMask(false); // if antialias is off, do not process
if(antialiasOn){
- Vc::float_m fadeStartMask = dist > vFadeAFadeStart;
+ fadeStartMask = dist > vFadeAFadeStart;
dist((outsideMask ^ fadeStartMask) & fadeStartMask) = (vFadeStartValue + \
(dist - vFadeAFadeStart) * vFadeAFadeCoeff) / vValMax; }
-
- Vc::float_m excludeMask = outsideMask | fadeStartMask;
+ Vc::float_m excludeMask(outsideMask | fadeStartMask);
if (!excludeMask.isFull()) {
Vc::float_v valDist = dist * vDistfactor;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic