2008-01-31 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Thu, 31 Jan 2008 14:21:36 +0000 (14:21 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Thu, 31 Jan 2008 14:21:36 +0000 (14:21 +0000)
* 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  <rob@openedhand.com>

ChangeLog
clutter/clutter-actor.c

index 80600f8..4d64ee2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-31  Emmanuele Bassi  <ebassi@openedhand.com>
+
+       * 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  <rob@openedhand.com>
 
        * clutter/x11/clutter-backend-x11-private.h:
index ae76441..f1ea369 100644 (file)
@@ -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);
 }