[AD] [ alleg-Bugs-2388441 ] design bug with al_acknowledge_resize

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


Bugs item #2388441, was opened at 2008-12-04 05:52
Message generated for change (Comment added) made by strangemoose
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2388441&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 4.9
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Peter Wang (tjaden)
Assigned to: Nobody/Anonymous (nobody)
Summary: design bug with al_acknowledge_resize

Initial Comment:
Peter Hull pointed out a problem with the design of
al_acknowledge_resize() a while ago.  Two resize events may come in
without an intervening call to al_acknowledge_resize().  The user may
think he is responding to the first resize event, whereas Allegro is
likely to think he is responding to the second event.

I'm not sure what the practical consequences would really be; probably
none, as the user is likely to see the second resize event pretty
quickly anyway.  But we should decide what we want to do about it,
even if it's just documenting it.


----------------------------------------------------------------------

Comment By: Thomas Fjellstrom (strangemoose)
Date: 2008-12-09 21:31

Message:
event queues are fifo right? The resize event would really want to say
"take the last available resize event and discard the rest". Or somehow
have the event system allow "merging" of events, so when ever a new resize
event is added, the first existing resize event is changed to reflect the
new info.

----------------------------------------------------------------------

Comment By: Evert Glebbeek (eglebbk)
Date: 2008-12-09 21:19

Message:
Can we pop resize events that are still in the queue?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2388441&group_id=5665




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