From 98820e79e786f3d318a45e0f8e6100841530ff50 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 24 May 2010 02:29:28 +0300 Subject: Show selected target with bold font. Also fix possible memory corruption. Signed-off-by: Jared Adams --- src/text.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/text.h') 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 -- cgit v1.2.3-70-g09d2