oops, forgot to test SDL_QUIT :) if ( event.type == SDL_KEYDOWN ) { [...] } else if ( event.type == SDL_QUIT ) quit=true; -- Michael Bonfils ( http://www.murlock.org ) membre de http://www.guses.org