From 49b4ab9f770d776113c80936087687543b942043 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 18 May 2011 12:02:11 -0600 Subject: Fix detection of ActorSprites under OpenGL --- src/compoundsprite.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3-70-g09d2