|
|
@ -209,7 +209,7 @@ void KisAutoContrast::process(KisPaintDeviceSP src, KisPaintDeviceSP dst, KisFil
|
|
|
|
// adjust, but since it's partially selected we also only partially adjust
|
|
|
|
// adjust, but since it's partially selected we also only partially adjust
|
|
|
|
src->colorSpace()->applyAdjustment(iter.oldRawData(), iter.rawData(), adj, 1);
|
|
|
|
src->colorSpace()->applyAdjustment(iter.oldRawData(), iter.rawData(), adj, 1);
|
|
|
|
const TQ_UINT8 *pixels[2] = {iter.oldRawData(), iter.rawData()};
|
|
|
|
const TQ_UINT8 *pixels[2] = {iter.oldRawData(), iter.rawData()};
|
|
|
|
TQ_UINT8 weights[2] = {MAX_SELECTED - selectedness, selectedness};
|
|
|
|
TQ_UINT8 weights[2] = {(TQ_UINT8)(MAX_SELECTED - selectedness), selectedness};
|
|
|
|
src->colorSpace()->mixColors(pixels, weights, 2, iter.rawData());
|
|
|
|
src->colorSpace()->mixColors(pixels, weights, 2, iter.rawData());
|
|
|
|
++iter;
|
|
|
|
++iter;
|
|
|
|
pixelsProcessed++;
|
|
|
|
pixelsProcessed++;
|
|
|
@ -303,7 +303,7 @@ void KisDesaturateFilter::process(KisPaintDeviceSP src, KisPaintDeviceSP dst, Ki
|
|
|
|
// adjust, but since it's partially selected we also only partially adjust
|
|
|
|
// adjust, but since it's partially selected we also only partially adjust
|
|
|
|
src->colorSpace()->applyAdjustment(iter.oldRawData(), iter.rawData(), m_adj, 1);
|
|
|
|
src->colorSpace()->applyAdjustment(iter.oldRawData(), iter.rawData(), m_adj, 1);
|
|
|
|
const TQ_UINT8 *pixels[2] = {iter.oldRawData(), iter.rawData()};
|
|
|
|
const TQ_UINT8 *pixels[2] = {iter.oldRawData(), iter.rawData()};
|
|
|
|
TQ_UINT8 weights[2] = {MAX_SELECTED - selectedness, selectedness};
|
|
|
|
TQ_UINT8 weights[2] = {(TQ_UINT8)(MAX_SELECTED - selectedness), selectedness};
|
|
|
|
src->colorSpace()->mixColors(pixels, weights, 2, iter.rawData());
|
|
|
|
src->colorSpace()->mixColors(pixels, weights, 2, iter.rawData());
|
|
|
|
++iter;
|
|
|
|
++iter;
|
|
|
|
pixelsProcessed++;
|
|
|
|
pixelsProcessed++;
|
|
|
|