From ca58a3cced99fc2a8989da0155c1927bc0f08b6f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 2 Jul 2011 04:36:59 +0300 Subject: Replace some getters to direct member access in Image class. --- src/animatedsprite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/animatedsprite.cpp') 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; } -- cgit v1.2.3-70-g09d2