mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
Override the opacity when painting a clone instead of combining
When rendering a clone before this commit the clone's opacity was combined with the opacity of the source but this is not usually the desired effect. Instead the clone's opacity (combined with its parents) should completely override the opacity of the source.
This commit is contained in:
parent
c0672b6683
commit
99248fa90f
@ -5394,8 +5394,8 @@ clutter_actor_get_paint_opacity (ClutterActor *self)
|
|||||||
priv = self->priv;
|
priv = self->priv;
|
||||||
|
|
||||||
if (priv->opacity_parent)
|
if (priv->opacity_parent)
|
||||||
parent = priv->opacity_parent;
|
return clutter_actor_get_paint_opacity (priv->opacity_parent);
|
||||||
else
|
|
||||||
parent = priv->parent_actor;
|
parent = priv->parent_actor;
|
||||||
|
|
||||||
/* Factor in the actual actors opacity with parents */
|
/* Factor in the actual actors opacity with parents */
|
||||||
|
Loading…
Reference in New Issue
Block a user