]> 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 0f1287c06a3d2528b6f01c074ddda32f3c5ec75e..d2e8dd4c02a868d0946d2f243865246a219db0db 100644 (file)
@@ -23,7 +23,9 @@ public:
 public:
        int MinWidth() const { return 2 * borderWidth; }
        int MinHeight() const { return 2 * borderHeight; }
-       void Draw(SDL_Surface *dest, geometry::Point<int> position, int width, int height) const;
+       int BorderWidth() const { return borderWidth; }
+       int BorderHeight() const { return borderHeight; }
+       void Draw(SDL_Surface *dest, const geometry::Point<int> &position, int width, int height) const;
 
 private:
        SDL_Surface *surface;