mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
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:
parent
a9789616b9
commit
30eb3be781
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user