GUI: Partial fix to bug #3075649 Fonts not found with buit-in theme

When the locale font are not found when loading the theme, it now
fallbacks to default language (i.e. English) and default font. For this to work
I had to move the TranslationManager initialization before the Theme is
loaded. Therefore it is now initialized when the GuiManager is constructed.

svn-id: r52896
This commit is contained in:
Thierry Crozat 2010-09-25 22:47:00 +00:00
parent 76992402d7
commit b1f63deba3
3 changed files with 6 additions and 5 deletions

View file

@ -362,9 +362,6 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
setupGraphics(system);
// Enable translation
TransMan.setLanguage(ConfMan.get("gui_language").c_str());
// Init the event manager. As the virtual keyboard is loaded here, it must
// take place after the backend is initiated and the screen has been setup
system.getEventManager()->init();