Commit 5988891f authored by JP Dinger's avatar JP Dinger

Skins2: Cosmetics.

parent 1f7eddac
...@@ -56,9 +56,7 @@ AnimBitmap::~AnimBitmap() ...@@ -56,9 +56,7 @@ AnimBitmap::~AnimBitmap()
void AnimBitmap::startAnim() void AnimBitmap::startAnim()
{ {
if( m_nbFrames > 1 && m_frameRate > 0 ) if( m_nbFrames > 1 && m_frameRate > 0 )
{
m_pTimer->start( 1000 / m_frameRate, false ); m_pTimer->start( 1000 / m_frameRate, false );
}
} }
...@@ -87,14 +85,8 @@ void AnimBitmap::draw( OSGraphics &rImage, int xDest, int yDest ) ...@@ -87,14 +85,8 @@ void AnimBitmap::draw( OSGraphics &rImage, int xDest, int yDest )
bool AnimBitmap::hit( int x, int y ) const bool AnimBitmap::hit( int x, int y ) const
{ {
int height = m_pImage->getHeight() / m_nbFrames; int height = m_pImage->getHeight() / m_nbFrames;
if( y >= 0 && y < height ) return y >= 0 && y < height &&
{ m_pImage->hit( x, m_curFrame * height + y );
return m_pImage->hit( x, m_curFrame * height + y );
}
else
{
return false;
}
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment