summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index 2f39cae6..5f2c00ea 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -281,6 +281,9 @@ void CompoundSprite::redraw() const
// TODO OpenGL support
if (Image::getLoadAsOpenGL())
{
+ mWidth = at(0)->getWidth();
+ mHeight = at(0)->getHeight();
+
// Temporary fix for position
Map *map = Game::instance() ? Game::instance()->getCurrentMap() : 0;
if (map)