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:
Neil Roberts 2009-02-18 16:41:01 +00:00
parent c0672b6683
commit 99248fa90f

View File

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