summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-03 05:31:32 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-03 05:31:32 +0300
commit7758b86aaa0d368ef776ad826903a0b3bcc7102c (patch)
tree9027268823c1c8b50fc614804bb3147c3467333d /src/compoundsprite.cpp
parentd34bee39f28fdc14a0a1c493b4f6c5c8552f5357 (diff)
downloadmanaverse-7758b86aaa0d368ef776ad826903a0b3bcc7102c.tar.gz
manaverse-7758b86aaa0d368ef776ad826903a0b3bcc7102c.tar.bz2
manaverse-7758b86aaa0d368ef776ad826903a0b3bcc7102c.tar.xz
manaverse-7758b86aaa0d368ef776ad826903a0b3bcc7102c.zip
Dont create in software alpha surface for complex sprites only if gui alpha disabled.
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index 2792e20bb..6f80e2c7b 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -391,7 +391,7 @@ void CompoundSprite::redraw() const
mImage = Image::load(surface);
SDL_FreeSurface(surface);
- if (mAlpha != 1.0f)
+ if (Image::mEnableAlpha)
{
mAlphaImage = Image::load(surfaceA);
SDL_FreeSurface(surfaceA);