Working on the sdl painting code