diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-27 14:11:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-27 14:11:55 +0300 |
commit | 26f817319be3f0c21785cbf079ae2758a362bd63 (patch) | |
tree | 82d7dd54415db580b64f105ae337beabbc2bd346 /src/compoundsprite.cpp | |
parent | ce1061c80ab7981a25239a36a94d2bd0b560cd8f (diff) | |
download | manaverse-26f817319be3f0c21785cbf079ae2758a362bd63.tar.gz manaverse-26f817319be3f0c21785cbf079ae2758a362bd63.tar.bz2 manaverse-26f817319be3f0c21785cbf079ae2758a362bd63.tar.xz manaverse-26f817319be3f0c21785cbf079ae2758a362bd63.zip |
Revert "improve a bit draw speed."
This reverts commit ffabda4c473711ffa8fdfe37c2a4460fe31347ac.
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r-- | src/compoundsprite.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp index 074274ae1..a191afc59 100644 --- a/src/compoundsprite.cpp +++ b/src/compoundsprite.cpp @@ -60,7 +60,6 @@ CompoundSprite::CompoundSprite() : mDisableAdvBeingCaching(config.getBoolValue("disableAdvBeingCaching")), mDisableBeingCaching(config.getBoolValue("disableBeingCaching")), mSprites(), - mTempFramesCount(0), mNextRedrawTime(0) { mAlpha = 1.0f; @@ -218,7 +217,7 @@ unsigned int CompoundSprite::getCurrentFrame() const return 0; } -unsigned int CompoundSprite::getActualFrameCount() const +unsigned int CompoundSprite::getFrameCount() const { FOR_EACH (SpriteConstIterator, it, mSprites) { @@ -407,7 +406,6 @@ void CompoundSprite::setAlpha(float alpha) void CompoundSprite::updateImages() const { - mTempFramesCount = getActualFrameCount(); #ifdef USE_OPENGL if (imageHelper->useOpenGL()) return; |