diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-03 05:31:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-03 05:31:32 +0300 |
commit | 7758b86aaa0d368ef776ad826903a0b3bcc7102c (patch) | |
tree | 9027268823c1c8b50fc614804bb3147c3467333d | |
parent | d34bee39f28fdc14a0a1c493b4f6c5c8552f5357 (diff) | |
download | plus-7758b86aaa0d368ef776ad826903a0b3bcc7102c.tar.gz plus-7758b86aaa0d368ef776ad826903a0b3bcc7102c.tar.bz2 plus-7758b86aaa0d368ef776ad826903a0b3bcc7102c.tar.xz plus-7758b86aaa0d368ef776ad826903a0b3bcc7102c.zip |
Dont create in software alpha surface for complex sprites only if gui alpha disabled.
-rw-r--r-- | src/compoundsprite.cpp | 2 |
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); |