Commit 59258900 authored by Casper Boemann's avatar Casper Boemann

work on more than a single pixel at a time


svn path=/trunk/koffice/; revision=444319
parent 6cbc829e
...@@ -81,11 +81,14 @@ void KisBrightnessContrastFilter::process(KisPaintDeviceSP src, KisPaintDeviceSP ...@@ -81,11 +81,14 @@ void KisBrightnessContrastFilter::process(KisPaintDeviceSP src, KisPaintDeviceSP
while( ! srcIt.isDone() && !cancelRequested()) while( ! srcIt.isDone() && !cancelRequested())
{ {
Q_UINT32 npix;
npix = srcIt.nConseqPixels();
// change the brightness and contrast // change the brightness and contrast
src->colorStrategy()->applyAdjustment(srcIt.oldRawData(), dstIt.rawData(), adj, 1); src->colorStrategy()->applyAdjustment(srcIt.oldRawData(), dstIt.rawData(), adj, npix);
++srcIt; srcIt+=npix;
++dstIt; dstIt+=npix;
pixelsProcessed++; pixelsProcessed++;
setProgress(pixelsProcessed); setProgress(pixelsProcessed);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment