[clutter] paint-volumes: avoid trashing is_static state



commit 30eb3be781475699389fba7b690649a85ba1aea4
Author: Robert Bragg <robert linux intel com>
Date:   Thu Jun 16 12:28:37 2011 +0100

    paint-volumes: avoid trashing is_static state
    
    In _clutter_paint_volume_set_from_volume we were using memcpy to simply
    copy everything from one volume to another, but that meant we were
    trashing the is_static flag which determines if the destination
    paint-volume was slice allocated or not.

 clutter/clutter-paint-volume.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-paint-volume.c b/clutter/clutter-paint-volume.c
index 3680fb4..f97d794 100644
--- a/clutter/clutter-paint-volume.c
+++ b/clutter/clutter-paint-volume.c
@@ -143,7 +143,9 @@ void
 _clutter_paint_volume_set_from_volume (ClutterPaintVolume       *pv,
                                        const ClutterPaintVolume *src)
 {
+  gboolean is_static = pv->is_static;
   memcpy (pv, src, sizeof (ClutterPaintVolume));
+  pv->is_static = is_static;
 }
 
 /**



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