summaryrefslogtreecommitdiff
path: root/src/being/compoundsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r--src/being/compoundsprite.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp
index 2af54f247..af2e60d55 100644
--- a/src/being/compoundsprite.cpp
+++ b/src/being/compoundsprite.cpp
@@ -136,33 +136,6 @@ bool CompoundSprite::update(const int time)
return ret;
}
-void CompoundSprite::draw(Graphics *const graphics,
- const int posX,
- const int posY) const
-{
- FUNC_BLOCK("CompoundSprite::draw", 1)
- if (mNeedsRedraw)
- updateImages();
-
- if (mSprites.empty()) // Nothing to draw
- return;
-
- if (mAlpha == 1.0F && mImage)
- {
- graphics->drawImage(mImage, posX + mOffsetX, posY + mOffsetY);
- }
- else if (mAlpha && mAlphaImage)
- {
- mAlphaImage->setAlpha(mAlpha);
- graphics->drawImage(mAlphaImage,
- posX + mOffsetX, posY + mOffsetY);
- }
- else
- {
- drawSprites(graphics, posX, posY);
- }
-}
-
void CompoundSprite::drawSimple(Graphics *const graphics,
const int posX,
const int posY) const