summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/sdlfont.h')
-rw-r--r--src/gui/sdlfont.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/sdlfont.h b/src/gui/sdlfont.h
index a7bea343f..a736c70e0 100644
--- a/src/gui/sdlfont.h
+++ b/src/gui/sdlfont.h
@@ -53,16 +53,17 @@ class SDLFont : public gcn::Font
* @param filename Font filename.
* @param size Font size.
*/
- SDLFont(std::string filename, int size, int style = 0);
+ SDLFont(std::string filename, const int size, const int style = 0);
/**
* Destructor.
*/
~SDLFont();
- void loadFont(std::string filename, int size, int style = 0);
+ void loadFont(std::string filename, const int size,
+ const int style = 0);
- void createSDLTextChunk(SDLTextChunk *chunk);
+ void createSDLTextChunk(SDLTextChunk *const chunk);
virtual int getWidth(const std::string &text) const;
@@ -74,9 +75,9 @@ class SDLFont : public gcn::Font
/**
* @see Font::drawString
*/
- void drawString(gcn::Graphics *graphics,
+ void drawString(gcn::Graphics *const graphics,
const std::string &text,
- int x, int y);
+ const int x, const int y);
void clear();