[Sugar-devel] flickering mouse in an activity on an xo
garycmartin at googlemail.com
Sun Aug 29 12:04:27 EDT 2010
On 29 Aug 2010, at 15:55, Erik Blankinship <erikb at mediamods.com> wrote:
> I am experimenting with integrating the hamster graphics library into an XO activity.
> http://github.com/tbaugis/hamster_experiments/wiki ( found on the pycairo resources page: http://cairographics.org/pycairo/resources/ )
> Because of the ease with which animation can be rendered with this library, I think it might help some developers to create engaging activities.
> Unfortunately, I have encountered a problem when I run a very basic test activity on an XO1-5: the mouse pointer flickers whenever a sprite is animated. (This bug also happens when I run the code in fedora desktop on the XO... but does not happen in the sugar emulator or on my f13 box). Here is a video which demonstrates the flickering:
Oooh, do I spot an icon with gradient, and there was me hoping you'd not use it just to make shiny 3D bevelled icon eye candy :-p
FWIW, the cursor flickers just like that in pygame based activities. Physics is pygame based, and the flicker was pretty annoying as the cursor is a key part of the UI, pygame also didn't pickup the Sugar cursor default shape — so I cheated, I switch off the cursor, and place a pygame sprite in the same place. No flicker, correct looking cursor. Total hack of course (though code in the end was easy/minimal).
Just a handful of lines in physics.py, most of which there to hide the fake pygame canvas cursor when the cursor moves into the toolbar area:
> Here is the test activity if you'd like to see the behaviour and reference the source:
> I am hoping that the sugar community might know of issues which might be responsible for mouse flickering?
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Sugar-devel