summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-01 03:03:12 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-01 03:07:13 +0300
commit09ebcebf32be3842d6158c3145492fbf2959440e (patch)
tree44970b335330ca56ab38d06f083fa005f1c53ca5 /src/gui/gui.cpp
parentfdb8081a82ec85c9ff23a89a82f81240d8bcaec9 (diff)
downloadmv-09ebcebf32be3842d6158c3145492fbf2959440e.tar.gz
mv-09ebcebf32be3842d6158c3145492fbf2959440e.tar.bz2
mv-09ebcebf32be3842d6158c3145492fbf2959440e.tar.xz
mv-09ebcebf32be3842d6158c3145492fbf2959440e.zip
Add setup option for finding bad chars in nicks.
Highlight bad nicks on map with secure font.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 6651a01d5..51d2f9adf 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -330,6 +330,12 @@ void Gui::updateFonts()
fontFile = branding.getStringValue("boldFont");
static_cast<SDLFont*>(boldFont)->loadFont(fontFile, fontSize);
+
+ fontFile = config.getValue("secureFont", "");
+ if (fontFile.empty())
+ fontFile = branding.getStringValue("secureFont");
+
+ static_cast<SDLFont*>(mSecureFont)->loadFont(fontFile, fontSize);
}
void Gui::distributeMouseEvent(gcn::Widget* source, int type, int button,