diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-02 04:36:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-02 04:37:42 +0300 |
commit | ca58a3cced99fc2a8989da0155c1927bc0f08b6f (patch) | |
tree | c8fc16ac2c5c0a9184c17c2920266b96934ed28f /src/animatedsprite.cpp | |
parent | d4dd89e72f8b1e2c0517981f7e3ffac4a040f9fa (diff) | |
download | manaplus-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.tar.gz manaplus-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.tar.bz2 manaplus-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.tar.xz manaplus-ca58a3cced99fc2a8989da0155c1927bc0f08b6f.zip |
Replace some getters to direct member access in Image class.
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; } |