Julien Nadeau <ve...@...> writes:

> 
> On Mon, Aug 16, 2010 at 01:57:47PM +0000, A-Steinhoff wrote:
[ clip]
> 
>       AG_DriverEvent dev;
>       dev.type = AG_DRIVER_CLOSE;
>       AG_ProcessEvent(NULL, &dev);
> 
> Now, the test should succeed under SDL drivers.

No it can't succeed: 

AG_SDL_GetNextEvent return already a AG_DRIVER_CLOSE event. See the code below
        case SDL_QUIT:
        case SDL_USEREVENT:
                dev->type = AG_DRIVER_CLOSE;
                dev->win = NULL;
                break;

But AG_SDL_ProcessEvent is closing the video and not the driver! 
        case AG_DRIVER_CLOSE:
                AGDRIVER_SW_CLASS(drv)->closeVideo(drv);
                agTerminating = 1;
                return (-1);


Btw ... the raw bug in cursor.c is still in the SVN !

--Armin

 




_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to