From d7e01ee3962ef0f5dfc6f0b45ff898a38e18d3be Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 31 Jan 2008 14:21:36 +0000 Subject: [PATCH] 2008-01-31 Emmanuele Bassi * clutter/clutter-actor.c (clutter_actor_init): Explicitly memset() to 0 the clip container, so if you get the clip without having set it, you won't get garbage. 2008-01-31 Rob Bradford --- ChangeLog | 6 ++++++ clutter/clutter-actor.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 80600f814..4d64ee26c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-31 Emmanuele Bassi + + * clutter/clutter-actor.c (clutter_actor_init): Explicitly + memset() to 0 the clip container, so if you get the clip without + having set it, you won't get garbage. + 2008-01-31 Rob Bradford * clutter/x11/clutter-backend-x11-private.h: diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index ae7644156..f1ea369a3 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -2000,6 +2000,8 @@ clutter_actor_init (ClutterActor *self) priv->scale_y = CFX_ONE; priv->shader_data = NULL; + memset (priv->clip, 0, sizeof (ClutterUnit) * 4); + clutter_actor_request_coords (self, &box); }