When using the rotozoomSurface function in the following manner produces unexpected surface sizes:
paddleImage = SDL_DisplayFormat(rotozoomSurface(paddleImage, 90, 1, 0));
The original paddleImage surface is 20x60 and displays perfect. After the above command, the surface size (paddleImage->w and paddleImage->h) is reported as 60x22. I don't understand how a 90 degree rotation with no zoom would produce anything other than 60x20. Also, the new image appears to be missing a line or two of vertical pixels. I also believe that my surface is 24bits (hence why I cannot use the rotateSurface90Degrees function) if that matters.
Log in to post a comment.