mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
2008-02-07 Neil J. Patel <njp@o-hand.com>
* tests/test-actors.c: (frame_cb), (main): Changed set_anchor to move_anchor. Changed clutter_actor_rotate x & y values to 0,0. Switched on scaling because it seems to work without drifting.
This commit is contained in:
parent
6b4a9c4df5
commit
384c7048e3
@ -1,3 +1,10 @@
|
||||
2008-02-07 Neil J. Patel <njp@o-hand.com>
|
||||
|
||||
* tests/test-actors.c: (frame_cb), (main):
|
||||
Changed set_anchor to move_anchor.
|
||||
Changed clutter_actor_rotate x & y values to 0,0.
|
||||
Switched on scaling because it seems to work without drifting.
|
||||
|
||||
2008-02-07 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-script-parser.c:
|
||||
|
@ -113,15 +113,7 @@ frame_cb (ClutterTimeline *timeline,
|
||||
* unit based functions to fix.
|
||||
*/
|
||||
clutter_actor_set_rotation (oh->hand[i], CLUTTER_Z_AXIS,
|
||||
- 6.0 * frame_num,
|
||||
#if 0
|
||||
(clutter_actor_get_width (oh->hand[i]) / 2) * scale_x,
|
||||
(clutter_actor_get_height (oh->hand[i]) / 2) * scale_y,
|
||||
#else
|
||||
(clutter_actor_get_width (oh->hand[i]) / 2),
|
||||
(clutter_actor_get_height (oh->hand[i]) / 2),
|
||||
#endif
|
||||
0);
|
||||
- 6.0 * frame_num, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -216,14 +208,14 @@ main (int argc, char *argv[])
|
||||
|
||||
clutter_actor_set_position (oh->hand[i], x, y);
|
||||
|
||||
clutter_actor_set_anchor_point_from_gravity (oh->hand[i],
|
||||
clutter_actor_move_anchor_point_from_gravity (oh->hand[i],
|
||||
CLUTTER_GRAVITY_CENTER);
|
||||
|
||||
|
||||
/* Add to our group group */
|
||||
clutter_container_add_actor (CLUTTER_CONTAINER (oh->group), oh->hand[i]);
|
||||
|
||||
#if 0 /* FIXME: disabled as causes drift - see comment above */
|
||||
#if 1 /* FIXME: disabled as causes drift? - see comment above */
|
||||
if (i % 2)
|
||||
clutter_behaviour_apply (scaler_1, oh->hand[i]);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user