Rewrote Sprite::ScaleToClipped and CropTo to actually work reliably and do what their names say.

This commit is contained in:
Kyzentun
2014-06-21 19:40:14 -06:00
parent 006fcd84a7
commit 8fd8bc644b
3 changed files with 93 additions and 111 deletions
+1 -1
View File
@@ -4236,7 +4236,7 @@ save yourself some time, copy this for undocumented things:
[02 Sprite.lua] Call <Link class='RageTexture' function='rate'><code>RageTexture:rate</code></Link><code>( fRate )</code> on the texture.
</Function>
<Function name='scaletoclipped' return='void' arguments='float fWidth, float fHeight'>
Scale the Sprite to width <code>fWidth</code> and height <code>fHeight</code> clipping if the dimensions do not match.
Scale the Sprite to width <code>fWidth</code> and height <code>fHeight</code> clipping dimension that would stick out.
</Function>
<Function name='setstate' return='void' arguments='int iNewState'>
Set the Sprite's state to <code>iNewState</code>.