On Mon, Aug 16, 2010 at 01:57:47PM +0000, A-Steinhoff wrote:
> <A.Steinhoff> writes:
>
> Replacing
>
> AGDRIVER_SW_CLASS(drv)->closeVideo(drv); by AGDRIVER_CLASS(drv)->close(drv);
>
> in AG_SDL_ProcessEvent() in the case AG_DRIVER_CLOSE fixed the problem !
This is odd, because demos/reinit does not actually invoke AG_EventLoop()
at all (which is actually the problem since SDL drivers rely on the CLOSE
event to terminate properly). I've added the following to the test loop:
AG_DriverEvent dev;
dev.type = AG_DRIVER_CLOSE;
AG_ProcessEvent(NULL, &dev);
Now, the test should succeed under SDL drivers.
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html