focus last logged character in charlist

This commit is contained in:
Eduardo Bart
2011-08-26 18:20:53 -03:00
parent ccc4c1ba5e
commit 67e3cfcb07
4 changed files with 10 additions and 2 deletions

View File

@@ -22,7 +22,6 @@ AnimatedTexture::AnimatedTexture(int width, int height, int channels, int numFra
m_framesTextureId[i] = id;
m_framesDelay[i] = framesDelay[i];
}
m_currentFrame = -1;
g_dispatcher.scheduleEvent(std::bind(&AnimatedTexture::processAnimation, this), 0);
}
@@ -51,5 +50,5 @@ void AnimatedTexture::processAnimation()
m_textureId = m_framesTextureId[m_currentFrame];
AnimatedTexturePtr me = std::static_pointer_cast<AnimatedTexture>(shared_from_this());
if(me.use_count() > 1)
g_dispatcher.addEvent(std::bind(&AnimatedTexture::processAnimation, me), m_framesDelay[m_currentFrame]);
g_dispatcher.scheduleEvent(std::bind(&AnimatedTexture::processAnimation, me), m_framesDelay[m_currentFrame]);
}