summaryrefslogtreecommitdiffstats
path: root/chalk/plugins/paintops/defaultpaintops/kis_eraseop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/plugins/paintops/defaultpaintops/kis_eraseop.cc')
-rw-r--r--chalk/plugins/paintops/defaultpaintops/kis_eraseop.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chalk/plugins/paintops/defaultpaintops/kis_eraseop.cc b/chalk/plugins/paintops/defaultpaintops/kis_eraseop.cc
index 13045139..794923a4 100644
--- a/chalk/plugins/paintops/defaultpaintops/kis_eraseop.cc
+++ b/chalk/plugins/paintops/defaultpaintops/kis_eraseop.cc
@@ -99,19 +99,19 @@ void KisEraseOp::paintAt(const KisPoint &pos, const KisPaintInformation& info)
KisPaintDeviceSP dab = new KisPaintDevice(device->colorSpace(), "erase op dab");
Q_CHECK_PTR(dab);
- TQ_INT32 tqmaskWidth = tqmask->width();
- TQ_INT32 tqmaskHeight = tqmask->height();
+ TQ_INT32 maskWidth = tqmask->width();
+ TQ_INT32 maskHeight = tqmask->height();
TQRect dstRect;
- KisRectIteratorPixel it = dab->createRectIterator(0, 0, tqmaskWidth, tqmaskHeight, true);
+ KisRectIteratorPixel it = dab->createRectIterator(0, 0, maskWidth, maskHeight, true);
KisColorSpace* cs = dab->colorSpace();
while (!it.isDone()) {
cs->setAlpha(it.rawData(), TQ_UINT8_MAX - tqmask->alphaAt(it.x(), it.y()), 1);
++it;
}
- TQRect dabRect = TQRect(0, 0, tqmaskWidth, tqmaskHeight);
+ TQRect dabRect = TQRect(0, 0, maskWidth, maskHeight);
dstRect = TQRect(destX, destY, dabRect.width(), dabRect.height());
KisImage * image = device->image();