koffice/krita/image/filter
Cyrille Berger
cberger at cberger.net
Wed May 5 23:26:24 CEST 2010
Hello,
I am confused by this change, why remove the bitBlt with selection ?
On Wednesday 05 May 2010, Dmitry Kazakov wrote:
> SVN commit 1123252 by dkazakov:
>
> Fixed a bug showing transparency on the bound of the image
>
> This was an old code. applicationRect != needRect. The filter will
> read from any source specified by needRect() just to ensure
> requestedRect is filtered successfully.
>
>
> M +3 -13 kis_filter_job.cpp
>
>
> --- trunk/koffice/krita/image/filter/kis_filter_job.cpp #1123251:1123252
> @@ -53,22 +53,12 @@
>
> void KisFilterJob::run()
> {
> - KisPaintDeviceSP dst = new KisPaintDevice(m_dev->colorSpace());
> - QRect marginRect = m_filter->neededRect(m_rc, m_config);
> -
> - m_filter->process(KisConstProcessingInformation(m_dev,
> marginRect.topLeft(), m_selection), -
> KisProcessingInformation(dst, marginRect.topLeft(), m_selection), -
> marginRect.size(),
> + m_filter->process(KisConstProcessingInformation(m_dev, m_rc.topLeft(),
> m_selection), + KisProcessingInformation(m_dev,
> m_rc.topLeft(), m_selection), + m_rc.size(),
> m_config,
> m_updater);
>
> - // blt back onto the original
> - KisPainter p2(m_dev);
> - p2.setCompositeOp(m_dev->colorSpace()->compositeOp(COMPOSITE_COPY));
> - p2.setSelection(m_selection);
> - p2.bitBlt(m_rc.topLeft(), dst, m_rc);
> - p2.end();
> -
> m_updater->setProgress(100);
> m_interrupted = m_updater->interrupted();
> }
--
Cyrille Berger
More information about the kimageshop
mailing list