summaryrefslogtreecommitdiff
path: root/src/compoundsprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compoundsprite.h')
-rw-r--r--src/compoundsprite.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/compoundsprite.h b/src/compoundsprite.h
index 3b443219..5754c4e1 100644
--- a/src/compoundsprite.h
+++ b/src/compoundsprite.h
@@ -45,12 +45,20 @@ public:
/**
* Gets the width in pixels of the first sprite in the list.
*/
- virtual int getWidth() const;
+ virtual int getWidth() const
+ { return mWidth; }
/**
* Gets the height in pixels of the first sprite in the list.
*/
- virtual int getHeight() const;
+ virtual int getHeight() const
+ { return mHeight; }
+
+ int getOffsetX() const
+ { return mOffsetX; }
+
+ int getOffsetY() const
+ { return mOffsetY; }
virtual const Image* getImage() const;
@@ -97,6 +105,7 @@ private:
mutable Image *mImage;
mutable Image *mAlphaImage;
+ mutable int mWidth, mHeight;
mutable int mOffsetX, mOffsetY;
mutable bool mNeedsRedraw;