simplify
This commit is contained in:
@@ -232,7 +232,7 @@ void Sprite::EnableAnimation( bool bEnable )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Sprite::LoadFromTexture( RageTextureID ID )
|
void Sprite::LoadFromTexture( RageTextureID ID )
|
||||||
{
|
{
|
||||||
LOG->Trace( "Sprite::LoadFromTexture( %s )", ID.filename.c_str() );
|
LOG->Trace( "Sprite::LoadFromTexture( %s )", ID.filename.c_str() );
|
||||||
|
|
||||||
@@ -269,8 +269,6 @@ bool Sprite::LoadFromTexture( RageTextureID ID )
|
|||||||
// apply clipping (if any)
|
// apply clipping (if any)
|
||||||
if( m_fRememberedClipWidth != -1 && m_fRememberedClipHeight != -1 )
|
if( m_fRememberedClipWidth != -1 && m_fRememberedClipHeight != -1 )
|
||||||
ScaleToClipped( m_fRememberedClipWidth, m_fRememberedClipHeight );
|
ScaleToClipped( m_fRememberedClipWidth, m_fRememberedClipHeight );
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sprite::UpdateAnimationState()
|
void Sprite::UpdateAnimationState()
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ public:
|
|||||||
virtual void PushSelf( lua_State *L );
|
virtual void PushSelf( lua_State *L );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool LoadFromTexture( RageTextureID ID );
|
void LoadFromTexture( RageTextureID ID );
|
||||||
|
|
||||||
void DrawTexture( const TweenState *state );
|
void DrawTexture( const TweenState *state );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user