[squeak-dev] Re: The Trunk: project view title is all black
Andreas Raab
andreas.raab at gmx.de
Mon Sep 7 04:14:54 UTC 2009
Juan Vuletich wrote:
> The fix is in the trunk. There are several issues here.
> 1) StringMorphs can not be cached by the hand anymore. This has no
> relation with the problem you fond, but I found it while testing. So I
> added StringMorph >> hasTranslucentColor
Makes sense. With anti-aliased fonts the caching logic is way to simplistic.
> 2) ProjectViewMorph used #stencil:at:color: to draw the project name.
> Changed it to #drawImage:at:
Good choice for the moment. It beats an all-black rectangle ;-)
> 3) We have a bug in BitBlt. When using #rgbAdd, alpha values are not
> actually added. What happens is more like (alpha1+alpha2)>0 ifTrue: [
> 1.0] ifFalse: [0.0]. The strange thing is that the code seems to be
> right, and it works ok in the simulator. Just sent an email to VM-Dev
> asking for help on this. As a workaround, I defined
> StringMorph>>imageForm:forRectangle: to use a white background instead
> of a transparent one.
How strange. I saw your post but didn't realize it was related to this
issue.
In any case thanks for the quick help!
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|