Grayscale Selections

Sven Langkamp sven.langkamp at gmail.com
Mon Jul 18 03:40:11 CEST 2011


On Sun, Jul 17, 2011 at 9:09 AM, Cyrille Berger Skott
<cberger at cberger.net>wrote:

> On Sunday 17 July 2011, Sven Langkamp wrote:
> > On Sat, Jul 16, 2011 at 10:17 PM, Sven Langkamp
> <sven.langkamp at gmail.com>wrote:
> > > On Sat, Jul 16, 2011 at 10:06 PM, Cyrille Berger Skott <
> > > Hmm I somehow saved the wrong diff and reverted the other code :/
> > >
> > > I also tried the params method. That was called by the result was
> exactly
> > > the same as when I didn't overwrite anything.
> >
> > Correction. Right code after all. I checked and at least the method is
> > called, but does nothing.
>
> Maybe you can write a unit test ? It should not be too difficult to create
> some
> small buffers that exhibits the result you want, and then if the unit test
> fails, I can have a look.
>

I have added a unit test (KisPainterTest::testBltToSelection). It does
bitBlt a black rect on a selection and check if that area is MIN_SELECTED.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20110718/9a3cd9c0/attachment.htm 


More information about the kimageshop mailing list