diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-07 04:35:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-07 04:37:42 +0300 |
commit | 80546c30a78aba1d3565cfe6148348607d2b5d70 (patch) | |
tree | ca896394fbdbd2351e166222e51aaa744410d973 /src/compoundsprite.cpp | |
parent | 0b4ce8c4594c2e70c2e3157c58491757e13558be (diff) | |
download | manaplus-80546c30a78aba1d3565cfe6148348607d2b5d70.tar.gz manaplus-80546c30a78aba1d3565cfe6148348607d2b5d70.tar.bz2 manaplus-80546c30a78aba1d3565cfe6148348607d2b5d70.tar.xz manaplus-80546c30a78aba1d3565cfe6148348607d2b5d70.zip |
For opengl and uncacheble complex sprites return behavior
like was before commit 4e7096f15eba73e6ea28066df6ab389aab3f052c.
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r-- | src/compoundsprite.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp index 6f80e2c7b..1642416ea 100644 --- a/src/compoundsprite.cpp +++ b/src/compoundsprite.cpp @@ -406,13 +406,15 @@ void CompoundSprite::setAlpha(float alpha) { if (alpha != mAlpha) { - SpriteConstIterator it, it_end; - for (it = begin(), it_end = end(); it != it_end; ++ it) + if (Image::mUseOpenGL == 0 && size() > 3) { - if (*it) - (*it)->setAlpha(alpha); + SpriteConstIterator it, it_end; + for (it = begin(), it_end = end(); it != it_end; ++ it) + { + if (*it) + (*it)->setAlpha(alpha); + } } - mAlpha = alpha; } } |