Thank you for your bug report,
I believe this had been fixed in svn already. In 1.3.3, there was only
a single "modal window" pointer. This was since replaced by a stack to
address this very problem. I've committed your test code to
demos/modalwindowhandler and it is working as expected.
On Sat, Aug 29, 2009 at 05:55:24PM -0500, Robert James Morales wrote:
> Code explains the issue better than I can:
>
> #include <agar/core.h>
> #include <agar/gui.h>
>
> void popup_react(AG_Event* event)
> {
> AG_TextPromptString("This is the second popup prompt. A crash will
> occur afterwards.", popup_react, NULL);
> }
>
> int main(int argc, char** argv)
> {
> if (AG_InitCore("popup test", 0) == -1)
> return -1;
>
> if (AG_InitVideo(800, 600, 32, AG_VIDEO_HWSURFACE) == -1)
> return -1;
>
> AG_TextPromptString("This is the first popup prompt. Click \"Ok\" to
> continue.", popup_react, NULL);
> AG_EventLoop();
>
> return 0;
> }
>
> _______________________________________________
> Agar mailing list
> [email protected]
> http://libagar.org/lists.html
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html