mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 17:29:11 +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)
|
if (font)
|
||||||
return font;
|
return font;
|
||||||
}
|
}
|
||||||
|
#ifdef USE_TRANSLATION
|
||||||
// Accept any other font that has the charset in its name
|
// 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) {
|
for (Common::HashMap<Common::String, const Font *>::const_iterator it = _fontMap.begin() ; it != _fontMap.end() ; ++it) {
|
||||||
if (it->_key.contains(TransMan.getCurrentCharset()))
|
if (it->_key.contains(TransMan.getCurrentCharset()))
|
||||||
return it->_value;
|
return it->_value;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
// Fallback: return a non localized kGUIFont.
|
// Fallback: return a non localized kGUIFont.
|
||||||
// Maybe we should return a null pointer instead?
|
// Maybe we should return a null pointer instead?
|
||||||
return g_sysfont;
|
return g_sysfont;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user