mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Forgot to actually call SetSourceRect in Sprite#setSourceRect
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1781 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
673d150a5a
commit
4d175b9243
@ -159,6 +159,9 @@ static VALUE Sprite_SetSubRect( VALUE self, VALUE aRectangle )
|
||||
rectangle.Top = FIX2INT( Rect_GetTop( temp ) );
|
||||
rectangle.Width = FIX2INT( Rect_GetWidth( temp ) );
|
||||
rectangle.Height = FIX2INT( Rect_GetHeight( temp ) );
|
||||
sf::Sprite *object = NULL;
|
||||
Data_Get_Struct( self, sf::Sprite, object );
|
||||
object->SetSubRect( rectangle );
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user