Hello, thank you for your reply, your hint at AG_TAILQ_FOREACH helped to solve it.
I'm using Agar from Lisp with a self-written binding and because I cannot bind to some C macro I had to make up something to imitate AG_TAILQ_FOREACH. I ended up traversing the tailqueue as I understood the macro would do it and collecting the window pointers into a list. Then in the main loop I drew the windows by iterating over that list and calling AG_WindowDraw. However, that list seemed to be somehow reversed and that's why the windows were drawn in the wrong order. If I reverse the list that my binding currently outputs, it works nicely. By the way, the Agar part of the Wiki example code seems to work (windows in correct order, of course). But my copied-pasted-compiled program only displayed a black background, is there something wrong with it? Agar 1.3.4. Thank you again. Jakob _______________________________________________ Agar mailing list [email protected] http://libagar.org/lists.html
