]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Frame.cpp
pass point as reference in graphics Draw functions
[l2e.git] / src / graphics / Frame.cpp
index ac394d195a97799b20d9f0604fa21b2315597ba0..c682fa0f97ca7de495b04914b2c84c03d8c34fc9 100644 (file)
@@ -12,7 +12,7 @@ using geometry::Point;
 namespace graphics {
 
 // TODO: maybe create a cache for frames?
-void Frame::Draw(SDL_Surface *dest, Point<int> position, int width, int height) const {
+void Frame::Draw(SDL_Surface *dest, const Point<int> &position, int width, int height) const {
        // top-left corner
        SDL_Rect srcRect;
        srcRect.x = xOffset;