(hey mods, I edited the other one to indicate it was in the wrong forum, delete IT not this one please :) )
Does anyone want to tell me why
ret = SDL_CreateRGBSurface(SDL_SWSURFACE,512,288,32,0xff0000,0x00ff00,0x0000ff,0x0);
is segfaulting? There is no reason for it at all that I can see...