Hi all, I have an program which accepts an arbitrary ClutterScript, and displays its contents in a ClutterStage. One of the program's features is being able to scale the stage, the actors, and the animations - for instance, to double or triple its "normal" size - without having to change the ClutterScript.
Under Clutter 1.6, I was able to achieve this very simply, by sizing the stage correctly and then calling clutter_actor_set_scale() early in the program's execution to apply the scale factor to the stage. Then I could add actors and animations later, and the actor locations/sizes, and the coordinates for the animations, all acted as if that scale factor had been applied. For instance, an actor that was as tall as the stage with a scale factor of 1 was also as tall as the stage with a scale factor of 2, 3, 4, etc. And an animation that ended with an actor on the right side of the stage with a scale factor of 1 did the same thing with any other scale factor. However, this doesn't work under Clutter 1.10.0. Applying the scale factor to the stage has no effect on any of the stage's child actors or animations added after the scale factor was applied to the stage. Under the same circumstances as above, with a scale factor of 2, the actor is only half as tall as the stage, and the animation ends with the actor in the middle of the stage. As a temporary workaround, I'm applying the scale factor to the top-level actors, but that has no effect on the animations. So I have a couple of questions: 1. Is the Clutter 1.10.0 behavior a bug, or did my code under 1.6 take advantage of an "undocumented feature" that went away? 2. Is there a way under Clutter 1.10 to scale the coordinates resulting from an animation, so I can have the same result I achieved under 1.6? Thanks, Bob _______________________________________________ clutter-app-devel-list mailing list clutter-app-devel-list@clutter-project.org http://lists.clutter-project.org/listinfo/clutter-app-devel-list