]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Frame.h
pass point as reference in graphics Draw functions
[l2e.git] / src / graphics / Frame.h
index 3743640333379fa31f2583c559e29bf98b7511e7..d2e8dd4c02a868d0946d2f243865246a219db0db 100644 (file)
@@ -25,7 +25,7 @@ public:
        int MinHeight() const { return 2 * borderHeight; }
        int BorderWidth() const { return borderWidth; }
        int BorderHeight() const { return borderHeight; }
-       void Draw(SDL_Surface *dest, geometry::Point<int> position, int width, int height) const;
+       void Draw(SDL_Surface *dest, const geometry::Point<int> &position, int width, int height) const;
 
 private:
        SDL_Surface *surface;