Re: [AD] object_message() and scare_mouse() |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: conductors@xxxxxxxxxx
- Subject: Re: [AD] object_message() and scare_mouse()
- From: Evert Glebbeek <eglebbk@xxxxxxxxxx>
- Date: Mon, 11 Nov 2002 10:39:13 +0100
- Organization: University of Amsterdam
> There is a flaw in scare_mouse_area(). Here are the problematic code:
> freeze_mouse_flag freezes the mouse cursor and simultaneously blocks
mouse_x
> and mouse_y at the latest position of the cursor. Theoretically fine. But
> freeze_mouse_flag may be set to TRUE *after* the test in update_move()
has
> passed and *before* the test in mouse_move() has passed, leading to
mouse_x
> and mouse_y being updated but not the pointer. Therefore the mouse may
not be
> scared while the pointer and the drawing area overlap.
Amazing! I think I ran into this a while ago in Linux, but I assumed it was
my own code that was broken in some way. I'll see if this also fixes my
own code (when I have time).