[AD] set_window_close_state and _hook patch

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


Here is a patch that adds the functions to Allegro:

int set_window_close_state(int enable);
void set_window_close_hook(void (*proc)());

The functions are described in the docs.

The functions don't do anything; the patch simply paves the way for the
functionality to be added an OS at a time.

Note: when implementing the functions, programmers can check the docs to see
exactly how they should act. In particular, the dialog message for Windows
and BeOS is quoted in the docs.

Ben Davis

Attachment: winclose.diff
Description: Binary data



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