mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
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.
This commit is contained in:
parent
7ea4583d2f
commit
a826c4422f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user