Re: [AD] al_window_close, 2nd pass |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> I think it's the other way around. Sure, you have to explicitly write:
>
> if(al_window_closed) {
> // ... handle close button click
> }
>
> in your main loop(s), but you can do whatever you like in the
> conditional, whereas you are very restricted as to what you can do in a
> handler (IIRC this is because it is not run in the main thread,
> although correct me if I'm wrong).
You're right, you are restricted within the handler (indeed the thread). But
you can set a flag though! So, everything you can do with a mere flag, you
can do it with a handler.
> The decision is however yours, of course :-)
...<feeling of power>... ;-)
- Eric