mono/MonoGame — pull request #1174 by elisee (2013-01-12 01:25:22+00:00)
Title: Fix origin transform in DrawInternal with src rect

This pull request fixes the scale applied on the origin parameter passed to DrawInternal.

Currently the ratio is the destination rectangle size over the texture size. But when a source rectangle has been specified, its size should be used instead of the texture size.

I wrote a Windows test case to validate it works properly, you can download it here: http://polyprograms.free.fr/tmp/SpriteBatchOriginTestCase.zip

MonoGame version (buggy):
![MonoGame](https://f.cloud.github.com/assets/446986/61581/3e19f1c0-5c56-11e2-93b4-fa3b1c8d71b2.png)

XNA version:
![Xna](https://f.cloud.github.com/assets/446986/61583/3e30bba8-5c56-11e2-887c-abb5c6831a7d.png)

MonoGame with fix version:
![MonoGameWithFix](https://f.cloud.github.com/assets/446986/61582/3e1c47e0-5c56-11e2-8848-27c3ba63ef22.png)