Revision 166ea4c...

Go back to digest for 30th June 2013

Bug Fixes in Office

Dmitry Kazakov committed changes in [calligra/krita-testing-kazakov] /:

Fixed a pressure bug in Wash-mode of painting

When the pressure drops, the opacity drops as well. In this moment, to
avoid the artifacts while painting the ALPHA_DARKEN op should work in a
reversed way. That is the contents of the layer should be painted on the
top of the brush dab. To allow this, we now keep the average value of the
opacity of several last dabs to be able to reverse the composite op.

This is tested to work best with spacings 0.1-0.2. With other spacing
values, probably, one needs to correct exponent value in
ParameterInfo::updateOpacityAndAverage().

File Changes

Modified 12 files
  •   krita/benchmarks/kis_composition_benchmark.cpp
  •   krita/benchmarks/kis_composition_benchmark.h
  •   krita/image/kis_painter.cc
  •   krita/image/kis_painter.h
  •   libs/pigment/KoCompositeOp.cpp
  •   libs/pigment/KoCompositeOp.h
  •   libs/pigment/compositeops/KoCompositeOpAlphaDarken.h
  •   libs/pigment/compositeops/KoOptimizedCompositeOpAlphaDarken32.h
  •   libs/pigment/compositeops/KoOptimizedCompositeOpOver32.h
  •   libs/pigment/compositeops/KoStreamedMath.h
  •   krita/plugins/paintops/libpaintop/kis_pressure_flow_opacity_option.cpp
  •   krita/plugins/paintops/libpaintop/kis_pressure_opacity_option.cpp
12 files changed in total