https://bugs.kde.org/show_bug.cgi?id=353204

Dmitry Kazakov <dimul...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/krita/commit/e488caa31
                   |                            |049bfff784f57fa79903df07e02
                   |                            |aa1f
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit e488caa31049bfff784f57fa79903df07e02aa1f by Dmitry Kazakov.
Committed on 28/08/2020 at 21:14.
Pushed by dkazakov into branch 'krita/4.3'.

Fix Divide, Vivid Light and Parallel blending modes handle negative layer
colors

Sometimes, when converting RGBAF32<->LabAF32 colorspaces, LCMS may
generate pixels with "slightly negative" values, like -1e-7. The
mentioned blending modes couldn't handle that correclty, because
they only checked for zero'ness.

Now before doing a division operation we:

1) check if the value isn't too small
2) check it the value is positive

NOTE: there are still a lot of blendign modes from "Binary" section
      that still don't handle that correctly. But, speaking truly, I
      don't think we should actually enable these blending modes for
      F32 color spaces :)

M  +23   -0    libs/pigment/KoColorSpaceMaths.h
M  +11   -11   libs/pigment/compositeops/KoCompositeOpFunctions.h

https://invent.kde.org/graphics/krita/commit/e488caa31049bfff784f57fa79903df07e02aa1f

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to