[squeak-dev] The Inbox: Morphic-nice.531.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Apr 29 07:45:40 UTC 2011


A new version of Morphic was added to project The Inbox:
http://source.squeak.org/inbox/Morphic-nice.531.mcz

==================== Summary ====================

Name: Morphic-nice.531
Author: nice
Time: 29 April 2011, 9:44:35.371 am
UUID: 1e81083b-8ec1-4a0b-b1ba-5c201990e70e
Ancestors: Morphic-ul.530

Quick hack (#fixAlpha) to fix this bug:

((TextStyle defaultFont characterFormAt: $T) magnifyBy: 16) asMorph imageForm asMorph openInWorld

This workaround just adds noise and don't solve the root cause.

Anyway, invoking #translucentImage: with a non translucent argument just because an #isOpaque flag was not set in an ImageMorph is worth a refactoring IMHO

=============== Diff against Morphic-ul.530 ===============

Item was added:
+ ----- Method: FormCanvas>>translucentImage:at:sourceRect: (in category 'drawing-images') -----
+ translucentImage: aForm at: aPoint sourceRect: sourceRect
+ 	"Workaround because copying 16bits->32bits image does not fill the alpha channel"
+ 	super translucentImage: aForm at: aPoint sourceRect: sourceRect.
+ 	aForm isTranslucent ifFalse: [form fixAlpha]!




More information about the Squeak-dev mailing list