[squeak-dev] The Trunk: Graphics-nice.287.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sun Jan 12 14:12:03 UTC 2014


2014/1/11 Chris Muller <asqueaker at gmail.com>

> Why blending with Color white?
>

I don't know. It was the old code found in MultiDisplayScanner and just
happens to work.
I suppose it has no effect and is equivalent painting, except that it is
respectful of transparency encoding.


>
> On Thu, Jan 9, 2014 at 6:54 PM,  <commits at source.squeak.org> wrote:
> > Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
> > http://source.squeak.org/trunk/Graphics-nice.287.mcz
> >
> > ==================== Summary ====================
> >
> > Name: Graphics-nice.287
> > Author: nice
> > Time: 10 January 2014, 1:54:29.094 am
> > UUID: e853e088-f3a2-47b0-b991-98b23543c4e2
> > Ancestors: Graphics-nice.284
> >
> > Fix display of embedded Form in Text.
> > CombinationRule Form over apparently does not correctly handle
> transparency, Form blend does a better job.
> > The mistake is that DisplayScanner and MultiDisplayScanner did have two
> different versions of placeEmbeddedObject:, and I picked the wrong one when
> unifying. Since I only tested with embedded Morph and opaque Form, I failed
> to see it...
> > Thanks to Sean DeNigris for report and solution.
> >
> > =============== Diff against Graphics-nice.284 ===============
> >
> > Item was changed:
> >   ----- Method: BitBltDisplayScanner>>displayEmbeddedForm: (in category
> 'displaying') -----
> >   displayEmbeddedForm: aForm
> >         aForm
> >                 displayOn: bitBlt destForm
> >                 at: destX @ (lineY + line baseline - aForm height)
> > +               clippingBox: bitBlt clipRect
> > +               rule: Form blend
> > +               fillColor: Color white !
> > -               clippingBox: bitBlt clipRect!
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140112/27ee2eb7/attachment.htm


More information about the Squeak-dev mailing list