diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index f753789919..7bd84b9fa5 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -1314,6 +1314,7 @@ public: static int zoomto( T* p, lua_State *L ) { p->ZoomTo(FArg(1), FArg(2)); return 0; } static int zoomtowidth( T* p, lua_State *L ) { p->ZoomToWidth(FArg(1)); return 0; } static int zoomtoheight( T* p, lua_State *L ) { p->ZoomToHeight(FArg(1)); return 0; } + static int setsize( T* p, lua_State *L ) { p->SetWidth(FArg(1)); p->SetHeight(FArg(2)); return 0; } static int basezoomx( T* p, lua_State *L ) { p->SetBaseZoomX(FArg(1)); return 0; } static int basezoomy( T* p, lua_State *L ) { p->SetBaseZoomY(FArg(1)); return 0; } static int stretchto( T* p, lua_State *L ) { p->StretchTo( RectF(FArg(1),FArg(2),FArg(3),FArg(4)) ); return 0; } @@ -1442,6 +1443,7 @@ public: ADD_METHOD( zoomto ); ADD_METHOD( zoomtowidth ); ADD_METHOD( zoomtoheight ); + ADD_METHOD( setsize ); ADD_METHOD( basezoomx ); ADD_METHOD( basezoomy ); ADD_METHOD( stretchto ); diff --git a/stepmania/src/ActorFrame.cpp b/stepmania/src/ActorFrame.cpp index fda2925312..05bec547a3 100644 --- a/stepmania/src/ActorFrame.cpp +++ b/stepmania/src/ActorFrame.cpp @@ -376,7 +376,6 @@ public: static int propagate( T* p, lua_State *L ) { p->SetPropagateCommands( !!IArg(1) ); return 0; } static int fov( T* p, lua_State *L ) { p->SetFOV( FArg(1) ); return 0; } - static int setsize( T* p, lua_State *L ) { p->SetSize( FArg(1), FArg(2) ); return 0; } static int SetUpdateRate( T* p, lua_State *L ) { p->SetUpdateRate( FArg(1) ); return 0; } static int SetFOV( T* p, lua_State *L ) { p->SetFOV( FArg(1) ); return 0; } static int vanishpoint( T* p, lua_State *L ) { p->SetVanishPoint( FArg(1), FArg(2) ); return 0; } @@ -396,7 +395,6 @@ public: { ADD_METHOD( propagate ); ADD_METHOD( fov ); - ADD_METHOD( setsize ); ADD_METHOD( SetUpdateRate ); ADD_METHOD( SetFOV ); ADD_METHOD( vanishpoint ); diff --git a/stepmania/src/ActorFrame.h b/stepmania/src/ActorFrame.h index 4c8eea7d43..c5a6c8e41f 100644 --- a/stepmania/src/ActorFrame.h +++ b/stepmania/src/ActorFrame.h @@ -54,7 +54,6 @@ public: void SetUpdateRate( float fUpdateRate ) { m_fUpdateRate = fUpdateRate; } void SetFOV( float fFOV ) { m_fFOV = fFOV; } - void SetSize( float fX, float fY ) { m_size.x = fX; m_size.y = fY; } void SetVanishPoint( float fX, float fY) { m_fVanishX = fX; m_fVanishY = fY; } virtual void SetPropagateCommands( bool b );