05-10-2005, 10:01 AM
A quick follow up:
"blah = SDL_DisplayFormat(blah)" is incorrect usage of this function and will result in a memory leak.
Do this instead:More info here:
http://www.libsdl.org/cgi/docwiki.cgi/SD...playFormat
"blah = SDL_DisplayFormat(blah)" is incorrect usage of this function and will result in a memory leak.
Do this instead:
Code:
newSurface = SDL_DisplayFormat(oldSurface)
SDL_FreeSurface(oldSurface)
http://www.libsdl.org/cgi/docwiki.cgi/SD...playFormat