[PATCH 05/10] Opacity adjustment.
Silvio Heinrich
plassy at web.de
Tue Jan 4 00:49:28 CET 2011
---
.../defaultpaintops/smudge/kis_smudgeop.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/krita/plugins/paintops/defaultpaintops/smudge/kis_smudgeop.cpp b/krita/plugins/paintops/defaultpaintops/smudge/kis_smudgeop.cpp
index ef48e1f..e03121f 100644
--- a/krita/plugins/paintops/defaultpaintops/smudge/kis_smudgeop.cpp
+++ b/krita/plugins/paintops/defaultpaintops/smudge/kis_smudgeop.cpp
@@ -112,8 +112,8 @@ qreal KisSmudgeOp::paintAt(const KisPaintInformation& info)
if(!m_firstRun) {
// set opacity calculated by the rate option
// then blit the temporary painting device on the canvas at the current brush position
- // the alpha mask (maskDab) will be used here to only blit the pixels that lie in the area (shape) of the brush
- painter()->setOpacity(newOpacity / 2);
+ // the alpha mask (maskDab) will be used here to only blit the pixels that are in the area (shape) of the brush
+ painter()->setOpacity(newOpacity);
painter()->setCompositeOp(COMPOSITE_OVER);
painter()->bitBltWithFixedSelection(x, y, m_tempDev, maskDab, maskDab->bounds().width(), maskDab->bounds().height());
painter()->setOpacity(newOpacity);
--
1.7.1
More information about the kimageshop
mailing list