in reply to Setting Video Mode in SDL

Try to add this first:

SDL::init(SDL_INIT_VIDEO);

Peter (Guo) Pei