examples: Use pivot point, not anchor point

https://bugzilla.gnome.org/show_bug.cgi?id=677853
This commit is contained in:
Emmanuele Bassi
2012-07-06 18:06:33 +01:00
parent 8cea162d3c
commit 20d1d24e38
4 changed files with 5 additions and 4 deletions

View File

@ -158,7 +158,8 @@ make_bouncer (gfloat width,
clutter_actor_set_name (retval, "bouncer");
clutter_actor_set_size (retval, width, height);
clutter_actor_set_anchor_point (retval, width / 2, height / 2);
clutter_actor_set_pivot_point (retval, 0.5f, 0.5f);
clutter_actor_set_translation (retval, width / -2.f, height / -2.f, 0.f);
clutter_actor_set_reactive (retval, TRUE);
clutter_actor_set_content (retval, canvas);