Why does SdlDotNet's Rotation function zoom?

Started by
1 comment, last by Mavrick71 18 years ago
I am trying to rotate a sprite with SdlDotNet, and when I use the SdlDotNet.Surface.Rotation(int DegreesOfRotation) it zooms in while it rotates.
"All I want to know is who the man is that looked at a cow and said "I think I'll drink whatever comes out of those things when I squeeze them."Calvin and Hobbes
Advertisement
It's not that the surface zooms in, it's that the surface grows to accomodate the change in rotation so that the new image can fit on the surface. If you want full control over the rotation, use the CreateRotatedZoomedSurface function. This might actually be a better idea as consistantly rotating in realtime can really slow down the speed of the application.
Rob Loach [Website] [Projects] [Contact]
Thanks, I'll try that and see how it works.
"All I want to know is who the man is that looked at a cow and said "I think I'll drink whatever comes out of those things when I squeeze them."Calvin and Hobbes

This topic is closed to new replies.

Advertisement