[actor] In paint when opacity == 0, clear the queued_redraw flag

If we are short-circuiting the paint when the opacity is zero we still
need to clear the queued_redraw flag otherwise it won't be possible to
queue another redraw of the actor until something else has caused a
paint first.
This commit is contained in:
Neil Roberts 2009-05-22 14:49:37 +01:00
parent b3fe1b8a8a
commit 654c26a130

View File

@ -1567,7 +1567,10 @@ clutter_actor_paint (ClutterActor *self)
* actors with 0 opacity to be a NOP... */
if (G_LIKELY (context->pick_mode == CLUTTER_PICK_NONE) &&
priv->opacity == 0)
{
priv->queued_redraw = FALSE;
return;
}
if (!CLUTTER_ACTOR_IS_REALIZED (self))
{