diff options
author | Jared Adams <jaxad0127@gmail.com> | 2011-05-09 03:55:11 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2011-05-17 09:59:05 -0600 |
commit | ae4aea451d6e2c44b273c963026c4fd697568f79 (patch) | |
tree | 8f909b2c23baf3abb21b1c3987872fb891daa42f /src/animatedsprite.cpp | |
parent | dbfee8acae48ee1eec46d049656e83e952686ece (diff) | |
download | mana-ae4aea451d6e2c44b273c963026c4fd697568f79.tar.gz mana-ae4aea451d6e2c44b273c963026c4fd697568f79.tar.bz2 mana-ae4aea451d6e2c44b273c963026c4fd697568f79.tar.xz mana-ae4aea451d6e2c44b273c963026c4fd697568f79.zip |
Fix sprite buffering size issues
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 9f4e46bd..fb612f19 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -222,6 +222,16 @@ int AnimatedSprite::getHeight() const return 0; } +int AnimatedSprite::getOffsetX() const +{ + return mFrame ? mFrame->offsetX : 0; +} + +int AnimatedSprite::getOffsetY() const +{ + return mFrame ? mFrame->offsetY : 0; +} + const Image* AnimatedSprite::getImage() const { return mFrame ? mFrame->image : 0; |