[AD] object_message() and scare_mouse()

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


[Follow-up to Elias' patch]

Elias' patch aims at improving the GUI code with regard to the flickering of 
the mouse cursor. It basically teaches dialog_message() to use 
scare_mouse_area() instead of scare_mouse(). Fine.

The problem is that it doesn't affect object_message(), because the function 
doesn't automatically scare/unscare the mouse. And, indeed, the GUI code is 
riddled with constructs like:

	 scare_mouse();
	 object_message(d, MSG_DRAW, 0);
	 unscare_mouse();

Moreover, userspace code may also use them (see digitest for example, which 
flickers).

Would it not be profitable to let object_message() automatically scare/unscare 
the mouse, so that Elias could apply his improvement to it too ?

-- 
Eric Botcazou



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