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.
This commit is contained in:
Robert Bragg 2011-06-16 12:28:37 +01:00
parent a9789616b9
commit 30eb3be781

View File

@ -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;
}
/**