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,9 +5394,9 @@ clutter_actor_get_paint_opacity (ClutterActor *self)
priv = self->priv;
if (priv->opacity_parent)
parent = priv->opacity_parent;
else
parent = priv->parent_actor;
return clutter_actor_get_paint_opacity (priv->opacity_parent);
parent = priv->parent_actor;
/* Factor in the actual actors opacity with parents */
if (G_LIKELY (parent))