From 42ea471e330bbff217e7d5c199885e3991a47e06 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 27 Jul 2009 16:10:07 +0100 Subject: [PATCH] Remove explicit size of the Vertex arrays The Vertex arrays passed to some ClutterActor methods should not have the size. Albeit being technically correct, it's not a good practice. --- clutter/clutter-actor.c | 6 +++--- clutter/clutter-actor.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 5333fc452..956f7b55b 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -1923,7 +1923,7 @@ clutter_actor_transform_vertices_relative (ClutterActor *self, static void clutter_actor_transform_and_project_box (ClutterActor *self, const ClutterActorBox *box, - ClutterVertex verts[4]) + ClutterVertex verts[]) { ClutterActor *stage; CoglMatrix mtx; @@ -2003,7 +2003,7 @@ clutter_actor_transform_and_project_box (ClutterActor *self, void clutter_actor_get_allocation_vertices (ClutterActor *self, ClutterActor *ancestor, - ClutterVertex verts[4]) + ClutterVertex verts[]) { ClutterActorPrivate *priv; ClutterActor *stage; @@ -2089,7 +2089,7 @@ clutter_actor_get_allocation_vertices (ClutterActor *self, */ void clutter_actor_get_abs_allocation_vertices (ClutterActor *self, - ClutterVertex verts[4]) + ClutterVertex verts[]) { ClutterActorPrivate *priv; diff --git a/clutter/clutter-actor.h b/clutter/clutter-actor.h index 18f776685..bd3407b71 100644 --- a/clutter/clutter-actor.h +++ b/clutter/clutter-actor.h @@ -328,7 +328,7 @@ void clutter_actor_get_allocation_geometry (ClutterActor ClutterGeometry *geom); void clutter_actor_get_allocation_vertices (ClutterActor *self, ClutterActor *ancestor, - ClutterVertex verts[4]); + ClutterVertex verts[]); void clutter_actor_set_geometry (ClutterActor *self, const ClutterGeometry *geometry); void clutter_actor_get_geometry (ClutterActor *self, @@ -500,7 +500,7 @@ gboolean clutter_actor_is_scaled (ClutterActor *self); gboolean clutter_actor_should_pick_paint (ClutterActor *self); void clutter_actor_get_abs_allocation_vertices (ClutterActor *self, - ClutterVertex verts[4]); + ClutterVertex verts[]); void clutter_actor_apply_transform_to_point (ClutterActor *self, const ClutterVertex *point,