summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-05-09 03:55:11 -0600
committerJared Adams <jaxad0127@gmail.com>2011-05-17 09:59:05 -0600
commitae4aea451d6e2c44b273c963026c4fd697568f79 (patch)
tree8f909b2c23baf3abb21b1c3987872fb891daa42f /src/animatedsprite.cpp
parentdbfee8acae48ee1eec46d049656e83e952686ece (diff)
downloadmana-client-ae4aea451d6e2c44b273c963026c4fd697568f79.tar.gz
mana-client-ae4aea451d6e2c44b273c963026c4fd697568f79.tar.bz2
mana-client-ae4aea451d6e2c44b273c963026c4fd697568f79.tar.xz
mana-client-ae4aea451d6e2c44b273c963026c4fd697568f79.zip
Fix sprite buffering size issues
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp10
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;