diff options
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 215fd9ad6..8ccdd61e5 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -274,7 +274,7 @@ unsigned int AnimatedSprite::getFrameCount() const int AnimatedSprite::getWidth() const { if (mFrame && mFrame->image) - return mFrame->image->getWidth(); + return mFrame->image->mBounds.w; else return 0; } @@ -282,7 +282,7 @@ int AnimatedSprite::getWidth() const int AnimatedSprite::getHeight() const { if (mFrame && mFrame->image) - return mFrame->image->getHeight(); + return mFrame->image->mBounds.h; else return 0; } |