[clutter/clutter-1.10] actor: Check for mapped children in the default get_paint_volume()



commit 8484a350b4548d6aa37106b1711faddaec42b57e
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Thu Apr 12 17:07:06 2012 +0100

    actor: Check for mapped children in the default get_paint_volume()
    
    Unmapped children won't be painted so they should not contribute to the
    default paint volume computation.

 clutter/clutter-actor.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 7f78762..e46a9a7 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -5204,6 +5204,9 @@ clutter_actor_update_default_paint_volume (ClutterActor       *self,
         {
           const ClutterPaintVolume *child_volume;
 
+          if (!CLUTTER_ACTOR_IS_MAPPED (child))
+            continue;
+
           child_volume = clutter_actor_get_transformed_paint_volume (child, self);
           if (child_volume == NULL)
             {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]