X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFont.h;fp=src%2Fgraphics%2FFont.h;h=c48ea16a8410269b075fbb801c4d1c17cb921921;hb=1162be37102b24df11f469495c0184f3f9a26ba0;hp=70f451c2c864b6cdc8b5fd0a81a2f08f5137324c;hpb=85ac93ffe31bfeee54aa6167111f1c15f14bc405;p=l2e.git diff --git a/src/graphics/Font.h b/src/graphics/Font.h index 70f451c..c48ea16 100644 --- a/src/graphics/Font.h +++ b/src/graphics/Font.h @@ -26,10 +26,10 @@ public: public: int CharWidth() const { return sprite->Width(); } int CharHeight() const { return sprite->Height(); } - void DrawChar(char c, SDL_Surface *dest, geometry::Point position) const; - void DrawString(const char *s, SDL_Surface *dest, geometry::Point position, int maxChars = 0) const; - void DrawDigit(int d, SDL_Surface *dest, geometry::Point position) const; - void DrawNumber(int n, SDL_Surface *dest, geometry::Point position, int digits = 0) const; + void DrawChar(char c, SDL_Surface *dest, const geometry::Point &position) const; + void DrawString(const char *s, SDL_Surface *dest, const geometry::Point &position, int maxChars = 0) const; + void DrawDigit(int d, SDL_Surface *dest, const geometry::Point &position) const; + void DrawNumber(int n, SDL_Surface *dest, const geometry::Point &position, int digits = 0) const; private: const Sprite *sprite;