summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-02 21:11:16 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-02 21:11:16 +0300
commit8e3c48f9ed3dfe6dc2665f8b867e637cfc4d32ee (patch)
treec3d706aff10cb2c60009980e28367998fcc2d094 /src/compoundsprite.cpp
parent45a9bbd34cda3c784b935860a4cc616a0314a57c (diff)
downloadplus-8e3c48f9ed3dfe6dc2665f8b867e637cfc4d32ee.tar.gz
plus-8e3c48f9ed3dfe6dc2665f8b867e637cfc4d32ee.tar.bz2
plus-8e3c48f9ed3dfe6dc2665f8b867e637cfc4d32ee.tar.xz
plus-8e3c48f9ed3dfe6dc2665f8b867e637cfc4d32ee.zip
Fix compilation with different flags.
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index 99fae4f88..c6921b2e8 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -410,7 +410,11 @@ void CompoundSprite::setAlpha(float alpha)
{
if (alpha != mAlpha)
{
+#ifdef USE_OPENGL
if (mEnableAlphaFix && Image::mUseOpenGL == 0 && size() > 3)
+#else
+ if (mEnableAlphaFix && size() > 3)
+#endif
{
SpriteConstIterator it, it_end;
for (it = begin(), it_end = end(); it != it_end; ++ it)