summaryrefslogtreecommitdiff
path: root/src/textrenderer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-04 19:11:53 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-04 19:11:53 +0300
commit3a407bb6b73a186eafd99bcec570f88097c4b2e1 (patch)
treeea57a752c348ba0a883294855ad3c62c16e9749d /src/textrenderer.h
parent872fc368f7b253f26714fc47323064f270b62b40 (diff)
downloadmanaverse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.gz
manaverse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.bz2
manaverse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.xz
manaverse-3a407bb6b73a186eafd99bcec570f88097c4b2e1.zip
Add const to more classes.
Diffstat (limited to 'src/textrenderer.h')
-rw-r--r--src/textrenderer.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/textrenderer.h b/src/textrenderer.h
index 5dd831ddd..e331453fb 100644
--- a/src/textrenderer.h
+++ b/src/textrenderer.h
@@ -35,15 +35,15 @@ class TextRenderer
/**
* Renders a specified text.
*/
- static inline void renderText(gcn::Graphics *graphics,
+ static inline void renderText(gcn::Graphics *const graphics,
const std::string &text,
- int x, int y,
- gcn::Graphics::Alignment align,
+ const int x, const int y,
+ const gcn::Graphics::Alignment align,
const gcn::Color &color,
- gcn::Font *font,
- bool outline = false,
- bool shadow = false,
- int alpha = 255)
+ gcn::Font *const font,
+ const bool outline = false,
+ const bool shadow = false,
+ const int alpha = 255)
{
graphics->setFont(font);