[mutter/wip/surface-content: 1/6] shaped-texture: Clean up code flow a bit



commit e26602971619d4de1226b0db42b8110bde940e9c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Feb 5 13:39:47 2014 -0500

    shaped-texture: Clean up code flow a bit
    
    This is easier for me to read.

 src/compositor/meta-shaped-texture.c |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c
index 2939584..bc7f95b 100644
--- a/src/compositor/meta-shaped-texture.c
+++ b/src/compositor/meta-shaped-texture.c
@@ -696,21 +696,20 @@ meta_shaped_texture_update_area (MetaShapedTexture *stex,
           cairo_region_get_extents (intersection, &damage_rect);
           clutter_actor_queue_redraw_with_clip (CLUTTER_ACTOR (stex), &damage_rect);
           cairo_region_destroy (intersection);
-
           return TRUE;
         }
 
       cairo_region_destroy (intersection);
-
       return FALSE;
     }
-
-  if (has_clip)
-    clutter_actor_queue_redraw_with_clip (CLUTTER_ACTOR (stex), &clip);
   else
-    clutter_actor_queue_redraw (CLUTTER_ACTOR (stex));
-
-  return TRUE;
+    {
+      if (has_clip)
+        clutter_actor_queue_redraw_with_clip (CLUTTER_ACTOR (stex), &clip);
+      else
+        clutter_actor_queue_redraw (CLUTTER_ACTOR (stex));
+      return TRUE;
+    }
 }
 
 /**


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