Re: [AD] object_message() and scare_mouse()

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


> Ok, let's try it in the next WIP.

Patch attached, tested under DOS, Windows and Linux (the scare_mouse_area fix 
is required in order to make it work properly). What it does:
- object_message() automatically scares/unscares the mouse if the msg is 
MSG_DRAW, using scare_mouse_area() for all widgets except d_clear_proc() for 
which scare_mouse() is used. This latter feature requires a kludge to make 
sure we get the right address of d_clear_proc (i.e the exported one) under 
Windows.
- dialog_message() doesn't scare/unscare the mouse any more, calling 
object_message() for passing messages instead of doing it directly.
- removes all occurences of scare_mouse()/unscare_mouse() and 
show_mouse(NULL)/show_mouse(screen) around object_message(d, MSG_DRAW, 0) 
from the whole distribution.
- documents the new behaviour of object_message(), both in allegro._tx and 
api._tx

The effect is visible in the excustom example and the digitest program, 
particularly under Windows for the latter.

-- 
Eric Botcazou

Attachment: gui_scare_mouse_area.zip
Description: Zip archive



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