> I had the normalization step in mind while doing the DrawingAPI interface > so we have a ::finalize method in DynamicShape which should be called before > any function that needs normalization of it (rendering, hit test, bounds > computation) and that uses a "dirty" flag set whenever something is drawn. > Currently the function does nothing.
For swf defined shapes, the normalization step is done by the pp compiler. There should be a question for the dynamic shapes created by DrawingAPI: who should take care of the normalization? DrawingAPI interface? renderer? or the API users? I guess the API users should be responsible for not producing malformed shapes. It is not a trivial work for a *decoder* to produce a satisfied normalized shape with random inputs. I agree ::finalize method is needed for some attempts(eg. at least warnings for malformed), but don't expect too much. The DrawingAPI is capable for creating weird shapes out of your imagination:) --zou _______________________________________________ Gnash-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnash-dev

