[SDL 1.3] Quit Events not being recieved

Compiling under Windows XP, the following snip of code compiles and behaves properly with SDL 1.2;

Code:

while(SDL_PollEvent(&event))
{
if(SDL_QuitRequested())exit(1);
switch(event.type)
{
case SDL_QUIT:
exit(1);
break;

However, the exact piece of code, line for line, compiles but does nothing in SDL 1.3;
that is, attempting to close the window using the X (Alt+F4 has no effect in either) works with
1.2 but not 1.3.

Is this just a feature that is Not Yet Implemented in 1.3?

Sounds like it freezes before it reaches the loop - use printf (or whatever
equivalent you desire) to see where it’s locking up…On Sun, Oct 10, 2010 at 5:07 PM, Park <kyle_park0 at hotmail.com> wrote:

Compiling under Windows XP, the following snip of code compiles and
behaves properly with SDL 1.2;

Code:


while(SDL_PollEvent(&event))
{
if(SDL_QuitRequested())exit(1);
switch(event.type)
{
case SDL_QUIT:
exit(1);
break;

However, the exact piece of code, line for line, compiles but does nothing
in SDL 1.3;
that is, attempting to close the window using the X (Alt+F4 has no effect
in either) works with
1.2 but not 1.3.

Is this just a feature that is Not Yet Implemented in 1.3?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org