Sprite.Draw(): Textures go crazy when destination size is too small

Hi,

I am developing an application based on SDK example Simple2D.

In my own objects I am getting a strange problem: when the object is too small its texture goes nuts. At first I thought this was a problem with my code but soon I understood that this also happens in the original SDK sample: when the size of the Moving Sprite is changed, its texture goes crazy.

The strange thing is: If I make it bigger, though, everything runs

smoothly. So that should mean that I don't have to tweak with the

texture size anywhere else, right?

To replicate this error the following can be done: In line 349 of file SpriteContainer.cs in SDK sample Simple2D, make the destination size smaller. For example instead of:

new SizeF(spriteWidth, spriteHeight)
Make it:
new SizeF(spriteWidth/2, spriteHeight/2)

This is all I need to get a crazy result. Why is this?

Please help me if you can.

Thanks in advance,
Nuno

[932 byte] By [NunoGodinho] at [2007-12-26]