[SDL] RotoZoom is great, but...

Eddy L O Jansson eddy at klopper.net
Sat Sep 2 08:57:34 PDT 2006


On Sat, 02 Sep 2006 17:26:42 +0200, <SlntHero at aol.com> wrote:

> SDL_Surface *temp = SpriteBMP[spriteNumber];
> SDL_Surface  *temp2 = rotozoomSurface(temp, angle, zoom, 0);
[...]
> SDL_FreeSurface(temp);
> SDL_FreeSurface(temp2);
> }

  Maybe you're freeing the source frames from SpriteBMP a bit early?

  Don't free it if you don't own it.




More information about the SDL mailing list