more changes for sdl text handling