Original Post
After figuring out that SDL_gfx is a decent library to use to rotate surfaces, I began to use rotozoomSurface to rotate a surface on my game, however it proved mixed results. The surface rotated fine yet gave a black background when it rotated, and I can't figure out how to change that background color when it rotates.
screenshot:
http://img694.imageshack.us/img694/3273/rotation.png
code:
SDL_Surface *rotationSurface;
rotationSurface = rotozoomSurface(hole, (double)rotAngle, 1, 1);
apply_surface(100, 250, rotationSurface, screen);
screenshot:
http://img694.imageshack.us/img694/3273/rotation.png
code:
SDL_Surface *rotationSurface;
rotationSurface = rotozoomSurface(hole, (double)rotAngle, 1, 1);
apply_surface(100, 250, rotationSurface, screen);