1
0
Fork 0

tests: Clean up the cairo-flowers interactive test

This commit is contained in:
Emmanuele Bassi 2010-02-03 15:05:37 +00:00
parent cb52581a24
commit 16a5911cff

View file

@ -145,14 +145,16 @@ tick (ClutterTimeline *timeline,
Flower **flowers = (Flower**)data;
gint i = 0;
for (i=0; i< N_FLOWERS; i++)
for (i = 0; i < N_FLOWERS; i++)
{
ClutterActor *stage;
flowers[i]->y += flowers[i]->v;
flowers[i]->rot += flowers[i]->rv;
if (flowers[i]->y > (gint)clutter_actor_get_height
(clutter_stage_get_default ()))
flowers[i]->y = -clutter_actor_get_height (flowers[i]->ctex);
stage = clutter_stage_get_default ();
if (flowers[i]->y > (gint) clutter_actor_get_height (stage))
flowers[i]->y = -clutter_actor_get_height (flowers[i]->ctex);
clutter_actor_set_position (flowers[i]->ctex,
flowers[i]->x, flowers[i]->y);
@ -164,12 +166,8 @@ tick (ClutterTimeline *timeline,
clutter_actor_get_height (flowers[i]->ctex)/2,
0);
}
return TRUE;
}
void foo(void) { g_usleep(10000000); }
int
test_clutter_cairo_flowers_main (int argc, char **argv)
{