X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFrame.cpp;h=c682fa0f97ca7de495b04914b2c84c03d8c34fc9;hb=1162be37102b24df11f469495c0184f3f9a26ba0;hp=ac394d195a97799b20d9f0604fa21b2315597ba0;hpb=cccda573516f3bce30efbaba3fc20e4148d3cdc8;p=l2e.git diff --git a/src/graphics/Frame.cpp b/src/graphics/Frame.cpp index ac394d1..c682fa0 100644 --- a/src/graphics/Frame.cpp +++ b/src/graphics/Frame.cpp @@ -12,7 +12,7 @@ using geometry::Point; namespace graphics { // TODO: maybe create a cache for frames? -void Frame::Draw(SDL_Surface *dest, Point position, int width, int height) const { +void Frame::Draw(SDL_Surface *dest, const Point &position, int width, int height) const { // top-left corner SDL_Rect srcRect; srcRect.x = xOffset;