[AD] scare_mouse_area

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


Hi!

Here is a scare_mouse_area routine, which scares the mouse only if it is
in the specified bounds.
However, when I tested it, it sometimes leaves artifacts on the screen, as
if it was not hidden enough. Strangely, with the included test program, the
artifacts appear only when the sprite is drawn by rows first, and never when
it is drawn by columns first. Have I overlooked something ? Do I need to
hide the mouse based on scanlines used and not box (eg all X and not x=<X<x+w) ?
This one puzzles me, as the code is somewhat very simple :/

-- 
Vincent Penquerc'h
Windows NT - New Trial



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