Hi
On Tue, 2007-10-23 at 15:07 +0300, Karoliina Salminen wrote:
> Hi,
> This worked, but the performance is not great, the ongoing animation
> gets interrupted always when it gets into this loop and it looks ugly
> even on desktop (I have the label rotating all the time, and when I
> move e.g. mouse, it becomes jaggy).
> 

Hmm, that's odd as you shouldn't see any performance hit, as the loop
shouldn't last more than maximum four iterations (according to the
earlier code). Have a test case would help debugging this.

Also, if you are using clutter trunk, you can also use the
clutter_actor_set_reactive/clutter_actor_unset_reactive functions:

If you have a group that consists of a image and label, setting both the
image and label unreactive (using clutter_actor_unset_reactive at the
time of creation) will mean that clutter_stage_get_actor_at_pos will
return you the group that contains them (if the click is in that area).
This way, you don't have to do the loop, and can use your earlier code
(direct pointer comparison).

Regards,

Neil

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to