diff options
Diffstat (limited to 'chalk/doc/colorstrategyAPI')
| -rw-r--r-- | chalk/doc/colorstrategyAPI | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chalk/doc/colorstrategyAPI b/chalk/doc/colorstrategyAPI index 07c95ae9e..faa5724e7 100644 --- a/chalk/doc/colorstrategyAPI +++ b/chalk/doc/colorstrategyAPI @@ -41,17 +41,17 @@ void KisPaintDevice::applySelectionMask(KisSelectionSP tqmask) for (Q_INT32 y = r.top(); y <= r.bottom(); ++y) { KisHLineIterator pixelIt = createHLineIterator(r.x(), y, r.width(), true); - KisHLineIterator tqmaskIt = tqmask -> createHLineIterator(r.x(), y, r.width(), false); + KisHLineIterator maskIt = tqmask -> createHLineIterator(r.x(), y, r.width(), false); while (!pixelIt.isDone()) { KisPixel pixel = toPixel(pixelIt.rawData()); - KisPixel tqmaskValue = tqmask -> toPixel(tqmaskIt.rawData()); + KisPixel maskValue = tqmask -> toPixel(maskIt.rawData()); - pixel.alpha() = (pixel.alpha() * tqmaskValue.alpha()) / MAX_SELECTED; + pixel.alpha() = (pixel.alpha() * maskValue.alpha()) / MAX_SELECTED; ++pixelIt; - ++tqmaskIt; + ++maskIt; } } } |
