summaryrefslogtreecommitdiff
path: root/src/graphic/image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphic/image.cpp')
-rw-r--r--src/graphic/image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphic/image.cpp b/src/graphic/image.cpp
index c5e28bfb..7bbf6a68 100644
--- a/src/graphic/image.cpp
+++ b/src/graphic/image.cpp
@@ -104,7 +104,7 @@ Spriteset::Spriteset(std::string filename)
}
}
-Spriteset::Spriteset(BITMAP *bmp, int width, int height)
+Spriteset::Spriteset(BITMAP *bmp, int width, int height, int offx, int offy)
{
/*
* We're creating sub bitmaps here for plain convenience. With SDL this'll
@@ -118,7 +118,7 @@ Spriteset::Spriteset(BITMAP *bmp, int width, int height)
{
spriteset.push_back(new VideoImage(
create_sub_bitmap(bmp, x, y, width, height),
- 30, 40));
+ offx, offy));
}
}
}