gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp ...


From: Udo Giacomozzi
Subject: Re[2]: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp ...
Date: Sun, 22 Jul 2007 18:20:32 +0200

Hello strk,

Sunday, July 22, 2007, 4:38:18 AM, you wrote:
>> We have other problems it seems.
>> See http://foo.keybit.net/~strk/tmp/TextFieldColor.swf.
>> The color transform flattens the colors to a grayscale.

I'll check this tomorrow. Probably only a implementation *detail*
problem (ie. the cxform fields access), not related with the whole
thing.


s> It messes directly with the cxform, I don't think it should,
s> as the cxform would apply to *all* colors (text, border, background).

Indeed, that's what we need! Place a text field (device font) into a
movieclip, then apply a cxform that changes tint of the MC *and* sets
alpha to 50% or similar. You'll see that the text field is opaque
(alpha=100%) instead but text and border and background have the
desired colors.


s> Rather, the character should maintain a text color rgba member
s> and pass it to the draw_glyph_records..

Contrary to the cxform hack this would mean:
- special handling for the border/background drawing
- special handling for the glyphs color (still the *same* cxform to
  apply)
- change draw_glyph_records to not use world cxform.

Much code change, no benefit and error prone in the future IMHO.

Udo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]