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:
groogy 2011-01-28 21:50:59 +00:00
parent 673d150a5a
commit 4d175b9243

View File

@ -159,6 +159,9 @@ static VALUE Sprite_SetSubRect( VALUE self, VALUE aRectangle )
rectangle.Top = FIX2INT( Rect_GetTop( temp ) ); rectangle.Top = FIX2INT( Rect_GetTop( temp ) );
rectangle.Width = FIX2INT( Rect_GetWidth( temp ) ); rectangle.Width = FIX2INT( Rect_GetWidth( temp ) );
rectangle.Height = FIX2INT( Rect_GetHeight( temp ) ); rectangle.Height = FIX2INT( Rect_GetHeight( temp ) );
sf::Sprite *object = NULL;
Data_Get_Struct( self, sf::Sprite, object );
object->SetSubRect( rectangle );
return Qnil; return Qnil;
} }