Re: [clutter] Logic mistake in clutter_group_paint

From: Matthew Allum <mallum@openedhand.com>
Date: Wed Aug 09 2006 - 16:57:06 EDT

Whoops, nicely spotted, thanks :)

  -- Matthew

On Wed, 2006-08-09 at 22:49 +0200, Frédéric Riss wrote:
> Hi,
>
> Without this little oneliner, a group won't be translated if the user
> has only set one non-null coordinate.
>
> Cheers,
> Fred
>
> --
>
> Index: clutter/clutter-group.c
> ===================================================================
> --- clutter/clutter-group.c (révision 208)
> +++ clutter/clutter-group.c (copie de travail)
> @@ -75,7 +75,7 @@
>
> clutter_actor_get_geometry (actor, &geom);
>
> - if (geom.x != 0 && geom.y != 0)
> + if (geom.x != 0 || geom.y != 0)
> glTranslatef(geom.x, geom.y, 0.0);
>
> }
>
>

-- 
To unsubscribe send a mail to clutter+unsubscribe@o-hand.com
Received on Wed, 09 Aug 2006 21:57:06 +0100

This archive was generated by hypermail 2.1.8 : Mon Apr 30 2007 - 08:01:13 EDT