summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-05-24 02:29:28 +0300
committerJared Adams <jaxad0127@gmail.com>2010-05-24 12:59:53 -0600
commit98820e79e786f3d318a45e0f8e6100841530ff50 (patch)
tree2ea5e02d7320881b523303bd789406ac5fbfc0f8 /src/text.h
parent698620d703fea6d572c967bfa746d475d28f2d81 (diff)
downloadmana-client-98820e79e786f3d318a45e0f8e6100841530ff50.tar.gz
mana-client-98820e79e786f3d318a45e0f8e6100841530ff50.tar.bz2
mana-client-98820e79e786f3d318a45e0f8e6100841530ff50.tar.xz
mana-client-98820e79e786f3d318a45e0f8e6100841530ff50.zip
Show selected target with bold font.
Also fix possible memory corruption. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/text.h b/src/text.h
index fcfaf6ed..c884b394 100644
--- a/src/text.h
+++ b/src/text.h
@@ -40,7 +40,8 @@ class Text
*/
Text(const std::string &text, int x, int y,
gcn::Graphics::Alignment alignment,
- const gcn::Color *color, bool isSpeech = false);
+ const gcn::Color *color, bool isSpeech = false,
+ gcn::Font *font = 0);
/**
* Destructor. The text is removed from the screen.
@@ -84,7 +85,8 @@ class FlashText : public Text
public:
FlashText(const std::string &text, int x, int y,
gcn::Graphics::Alignment alignment,
- const gcn::Color* color);
+ const gcn::Color* color,
+ gcn::Font *font = 0);
/**
* Remove the text from the screen