From 73b6bd2f170eae933ede190f7c2cbc3a23ca0564 Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Wed, 22 Oct 2008 14:23:02 +0000 Subject: [PATCH] 2008-10-22 Thomas Wood * tests/test-actors.c: Don't adjust the radius based on the number of actors --- ChangeLog | 5 +++++ tests/test-actors.c | 11 ++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 944d9bb83..9bbb5680c 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 d8d794c2b..964a5b19b 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;