From 9f1f9d23b8efd4fb786418713ec786b121e68ef3 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 5 Apr 2011 14:03:08 +0100 Subject: examples: Rotate navigation test texture To make sure that the navigation test's coordinates transformation works as expected. --- examples/video-sink-navigation.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/video-sink-navigation.c b/examples/video-sink-navigation.c index b5d7f77..a4670fa 100644 --- a/examples/video-sink-navigation.c +++ b/examples/video-sink-navigation.c @@ -123,6 +123,13 @@ main (int argc, char *argv[]) constraint = clutter_bind_constraint_new (stage, CLUTTER_BIND_SIZE, 0.0); clutter_actor_add_constraint_with_name (texture, "size", constraint); + /* Rotate a bit */ + clutter_actor_set_rotation (texture, CLUTTER_Z_AXIS, + 45.0, + clutter_actor_get_width (stage) / 2, + clutter_actor_get_height (stage) / 2, + 0.0); + /* start the timeline */ clutter_timeline_start (timeline); -- cgit v1.2.1