diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-03 20:44:04 +0300 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-01-30 20:42:05 +0100 |
commit | 7de429cbcd838326dd455e7d182cb5ef19a611c9 (patch) | |
tree | 9695d146f660a9751691dacbb0e8c4becb273f4b /src/resources/imageset.cpp | |
parent | d8a119d8b2c65ac362b40f6ad33122ba8be76edc (diff) | |
download | mana-7de429cbcd838326dd455e7d182cb5ef19a611c9.tar.gz mana-7de429cbcd838326dd455e7d182cb5ef19a611c9.tar.bz2 mana-7de429cbcd838326dd455e7d182cb5ef19a611c9.tar.xz mana-7de429cbcd838326dd455e7d182cb5ef19a611c9.zip |
Add default offsets in imageset tag for all animations.
Reviewed-by: Bjorn.
Diffstat (limited to 'src/resources/imageset.cpp')
-rw-r--r-- | src/resources/imageset.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/imageset.cpp b/src/resources/imageset.cpp index c3994b3b..9fe75395 100644 --- a/src/resources/imageset.cpp +++ b/src/resources/imageset.cpp @@ -27,7 +27,10 @@ #include "utils/dtor.h" -ImageSet::ImageSet(Image *img, int width, int height, int margin, int spacing) +ImageSet::ImageSet(Image *img, int width, int height, + int margin, int spacing) : + mOffsetX(0), + mOffsetY(0) { for (int y = margin; y + height <= img->getHeight() - margin; y += height + spacing) { |