mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
Created an instance of wrong class.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1721 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
888d4f7585
commit
0446d03a03
@ -213,7 +213,7 @@ static VALUE Text_GetRect( VALUE self )
|
|||||||
sf::Text *object = NULL;
|
sf::Text *object = NULL;
|
||||||
Data_Get_Struct( self, sf::Text, object );
|
Data_Get_Struct( self, sf::Text, object );
|
||||||
const sf::FloatRect rect = object->GetRect();
|
const sf::FloatRect rect = object->GetRect();
|
||||||
return rb_funcall( globalVector2Class, rb_intern( "new" ), 4,
|
return rb_funcall( globalRectClass, rb_intern( "new" ), 4,
|
||||||
rb_float_new( rect.Left ), rb_float_new( rect.Top ),
|
rb_float_new( rect.Left ), rb_float_new( rect.Top ),
|
||||||
rb_float_new( rect.Width ), rb_float_new( rect.Height ) );
|
rb_float_new( rect.Width ), rb_float_new( rect.Height ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user