From 80546c30a78aba1d3565cfe6148348607d2b5d70 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Aug 2011 04:35:38 +0300 Subject: For opengl and uncacheble complex sprites return behavior like was before commit 4e7096f15eba73e6ea28066df6ab389aab3f052c. --- src/compoundsprite.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') 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; } } -- cgit v1.2.3-60-g2f50