[Sugar-devel] flickering mouse in an activity on an xo

Gary Martin garycmartin at googlemail.com
Sun Aug 29 12:04:27 EDT 2010


Hi Erik,

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:
> http://www.youtube.com/watch?v=jkBTafiwf38

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:

    http://git.sugarlabs.org/projects/physics/repos/mainline/blobs/master/physics.py

Regards,
--Gary  

> Here is the test activity if you'd like to see the behaviour and reference the source:
> http://alumni.media.mit.edu/~erikb/tmp/Test.activity.xo
> 
> I am hoping that the sugar community might know of issues which might be responsible for mouse flickering?
> 
> Thanks.
> Erik
> 
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100829/e3f0203c/attachment.htm 


More information about the Sugar-devel mailing list