From: Thomas Wood Date: Wed, 22 Oct 2008 14:23:02 +0000 (+0000) Subject: 2008-10-22 Thomas Wood X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73b6bd2f170eae933ede190f7c2cbc3a23ca0564;p=profile%2Fivi%2Fclutter.git 2008-10-22 Thomas Wood * tests/test-actors.c: Don't adjust the radius based on the number of actors --- diff --git a/ChangeLog b/ChangeLog index 944d9bb..9bbb568 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-22 Thomas Wood + + * tests/test-actors.c: Don't adjust the radius based on the number of + actors + 2008-10-21 Emmanuele Bassi * clutter/clutter-color.[ch] (clutter_value_set_color): Constify diff --git a/tests/test-actors.c b/tests/test-actors.c index d8d794c..964a5b1 100644 --- a/tests/test-actors.c +++ b/tests/test-actors.c @@ -32,12 +32,6 @@ static GOptionEntry super_oh_entries[] = { { NULL } }; -static gint -get_radius (void) -{ - return (CLUTTER_STAGE_HEIGHT() + CLUTTER_STAGE_HEIGHT()) / n_hands ; -} - /* input handler */ static gboolean input_cb (ClutterActor *stage, @@ -190,7 +184,6 @@ main (int argc, char *argv[]) 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) @@ -210,12 +203,12 @@ main (int argc, char *argv[]) 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;