Some pre code for SDL.