* tests/test-actors.c: Don't adjust the radius based on the number of
actors
+2008-10-22 Thomas Wood <thomas@linux.intel.com>
+
+ * tests/test-actors.c: Don't adjust the radius based on the number of
+ actors
+
2008-10-21 Emmanuele Bassi <ebassi@linux.intel.com>
* clutter/clutter-color.[ch] (clutter_value_set_color): Constify
{ NULL }
};
-static gint
-get_radius (void)
-{
- return (CLUTTER_STAGE_HEIGHT() + CLUTTER_STAGE_HEIGHT()) / n_hands ;
-}
-
/* input handler */
static gboolean
input_cb (ClutterActor *stage,
for (i = 0; i < n_hands; i++)
{
gint x, y, w, h;
- gint radius = get_radius ();
/* Create a texture from file, then clone in to same resources */
if (i == 0)
h = clutter_actor_get_height (oh->hand[0]);
x = CLUTTER_STAGE_WIDTH () / 2
- + radius
+ + RADIUS
* cos (i * M_PI / (n_hands / 2))
- w / 2;
y = CLUTTER_STAGE_HEIGHT () / 2
- + radius
+ + RADIUS
* sin (i * M_PI / (n_hands / 2))
- h / 2;