public void Init() { this.Quit(); SdlTtf.TTF_Init(); Sdl.SDL_Init(Sdl.SDL_INIT_EVERYTHING); flags = (Sdl.SDL_HWSURFACE | Sdl.SDL_DOUBLEBUF | Sdl.SDL_ANYFORMAT); bpp = 16; width = 640; height = 480; sleepTime = 500; //surfacePtr = IntPtr.Zero; //Sdl.SDL_FreeSurfaceInternal(surfacePtr); }