Re: [AD] Mouse drawings

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Saturday 27 August 2005 08:42 pm, Victor wrote:
> I fear that removing the way to use show_mouse() in memory bitmaps will
> cause serious compatibilities issues and will break older codes.
>
> I normally do:

All of which will cause problems when the timer tries to update the mouse at 
the same time that blit tries to read from it. There is no mutex's associated 
with memory bitmaps, so you can't gaurantee that multiple operations won't 
occur at the same time. It would be better to maanully draw the mouse to the 
buffer before blitting it to the screen.

> I think restricting it to video bitmaps only is a really bad idea,
> since there isn't any technical issues to create such restriction.

There are technical issues. There is no way to gaurantee concurrent drawing 
operations won't occur with the mouse timer, and memory bitmaps aren't safe 
being used from two different threads.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/