changes available from https://github.com/joolswills/sdl1