mirror of
https://github.com/SFML/SFML.git
synced 2025-02-01 06:05:13 +08:00
A little mistake by me. A warning from the compiler got me notified about it.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1799 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
1fad97be6d
commit
4813ca8d8e
@ -451,7 +451,7 @@ static VALUE Drawable_Rotate( VALUE self, VALUE aRotation )
|
|||||||
*/
|
*/
|
||||||
static VALUE Drawable_TransformToLocal( VALUE self, VALUE aPoint )
|
static VALUE Drawable_TransformToLocal( VALUE self, VALUE aPoint )
|
||||||
{
|
{
|
||||||
VALUE point = Vector2_ForceType( point );
|
VALUE point = Vector2_ForceType( aPoint );
|
||||||
rbDrawable *object = NULL;
|
rbDrawable *object = NULL;
|
||||||
Data_Get_Struct( self, rbDrawable, object );
|
Data_Get_Struct( self, rbDrawable, object );
|
||||||
sf::Vector2f newPoint = object->TransformToLocal( sf::Vector2f( NUM2DBL( Vector2_GetX( point ) ),
|
sf::Vector2f newPoint = object->TransformToLocal( sf::Vector2f( NUM2DBL( Vector2_GetX( point ) ),
|
||||||
@ -470,7 +470,7 @@ static VALUE Drawable_TransformToLocal( VALUE self, VALUE aPoint )
|
|||||||
*/
|
*/
|
||||||
static VALUE Drawable_TransformToGlobal( VALUE self, VALUE aPoint )
|
static VALUE Drawable_TransformToGlobal( VALUE self, VALUE aPoint )
|
||||||
{
|
{
|
||||||
VALUE point = Vector2_ForceType(point);
|
VALUE point = Vector2_ForceType(aPoint);
|
||||||
rbDrawable *object = NULL;
|
rbDrawable *object = NULL;
|
||||||
Data_Get_Struct( self, rbDrawable, object );
|
Data_Get_Struct( self, rbDrawable, object );
|
||||||
sf::Vector2f newPoint = object->TransformToGlobal( sf::Vector2f( NUM2DBL( Vector2_GetX( point ) ),
|
sf::Vector2f newPoint = object->TransformToGlobal( sf::Vector2f( NUM2DBL( Vector2_GetX( point ) ),
|
||||||
|
Loading…
Reference in New Issue
Block a user