Re: [AD] events.c patch

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


On Thursday 23 October 2008, Paul Suntsov wrote:
> Hello,
>
> Attached is a patch that makes uniform the behaviour of al_wait_for_event,
> al_peek_next_event, al_get_next_event and the timed versions of the wait
> one when the second argument is 0.
>
> Before, the get/peek versions asserted this away. The wait version took the
> parameter to mean whether it would actually do anything to the queue or
> not, which I thought illogical. The behaviour now is consistent amongst all
> of them: specifically, if a 0 is passed as the return event, it is not
> written to. Otherwise, everything happens as normal: events are deleted, or
> peeked as usual.
>
> I don't think it should affect anything, as I couldn't find any place where
> 0 was actually used in the examples.
>
> Yeah...
>
> Incidentally, examples no longer work on Linux Ubuntu 8.04 64 bit for me. A
> black window flashes, and goes away. Some examples work however, e.g.
> ex_drawpixels or others. I think it has to do with loading of resources...
> just thought I'd bring it up.

Hmm, I'll have to go through the examples and make sure they all use fshooks 
now.. as well as a few other places. But I'll be busy the next week or so, so 
anyone is free to do it.

> -SiegeLord


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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