aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authoreriktorbjorn2011-06-07 06:21:04 +0200
committereriktorbjorn2011-06-07 06:21:04 +0200
commita826c4422f823ec1bbd1902f05c549f94b75c8e1 (patch)
treede10556ae2ff7ea1c8ff88b0e27fc8f07fb9c395 /graphics
parent7ea4583d2fcbc7f760a041e265a0bfdff6853064 (diff)
downloadscummvm-rg350-a826c4422f823ec1bbd1902f05c549f94b75c8e1.tar.gz
scummvm-rg350-a826c4422f823ec1bbd1902f05c549f94b75c8e1.tar.bz2
scummvm-rg350-a826c4422f823ec1bbd1902f05c549f94b75c8e1.zip
JANITORIAL: Unbreak building with --disable-translation
I don't know if there is more code that can be removed when disabling translations, but this is the obvious obstacle.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/fontman.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/fontman.cpp b/graphics/fontman.cpp
index 6f1d282d54..f40cf97602 100644
--- a/graphics/fontman.cpp
+++ b/graphics/fontman.cpp
@@ -117,11 +117,13 @@ const Font *FontManager::getFontByUsage(FontUsage usage) const {
if (font)
return font;
}
+#ifdef USE_TRANSLATION
// Accept any other font that has the charset in its name
for (Common::HashMap<Common::String, const Font *>::const_iterator it = _fontMap.begin() ; it != _fontMap.end() ; ++it) {
if (it->_key.contains(TransMan.getCurrentCharset()))
return it->_value;
}
+#endif
// Fallback: return a non localized kGUIFont.
// Maybe we should return a null pointer instead?
return g_sysfont;