From 71127caa656094e9cb1e28a971e26469c12a7acd Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 14 Jan 2008 13:13:23 +0000 Subject: [PATCH] 2008-01-14 Emmanuele Bassi * tests/test-scale.c: Improve test case for scaling (#684, Jaap A. Haitsma) --- ChangeLog | 5 +++++ tests/test-scale.c | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index e23599845..67e1bd180 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-14 Emmanuele Bassi + + * tests/test-scale.c: Improve test case for scaling (#684, + Jaap A. Haitsma) + 2008-01-14 Emmanuele Bassi * clutter/clutter-timeline.c (timeline_timeout_func): Fix diff --git a/tests/test-scale.c b/tests/test-scale.c index 27621a75a..99a2a2f79 100644 --- a/tests/test-scale.c +++ b/tests/test-scale.c @@ -45,18 +45,19 @@ main (int argc, char *argv[]) clutter_stage_set_color (CLUTTER_STAGE (stage), &stage_color); clutter_actor_set_size (stage, 300, 300); - rect = clutter_rectangle_new_with_color(&rect_color); + rect = clutter_rectangle_new_with_color (&rect_color); clutter_actor_set_size (rect, 100, 100); clutter_actor_set_position (rect, 100, 100); - clutter_group_add (CLUTTER_GROUP(stage), rect); + clutter_group_add (CLUTTER_GROUP (stage), rect); rect_color.alpha = 0xff; - rect = clutter_rectangle_new_with_color(&rect_color); + rect = clutter_rectangle_new_with_color (&rect_color); + clutter_actor_set_anchor_point_from_gravity (rect, CLUTTER_GRAVITY_CENTER); clutter_actor_set_size (rect, 100, 100); - clutter_actor_set_position (rect, 100, 100); + clutter_actor_set_position (rect, 150, 150); - clutter_group_add (CLUTTER_GROUP(stage), rect); + clutter_group_add (CLUTTER_GROUP (stage), rect); timeline = clutter_timeline_new (20, 30); alpha = clutter_alpha_new_full (timeline,