Fixed loading/option-saving slowdown brought in by Chinese support to other languages.

This commit is contained in:
linshier
2010-08-15 11:57:31 +00:00
parent 4c4310ac1e
commit 8247c22ff0
2 changed files with 17 additions and 19 deletions

View File

@@ -146,11 +146,14 @@ void GameApp::Create()
jq->SetHotSpot(16,16);
LOG("--Loading fonts");
resources.LoadWFBFont("simon",12);
resources.LoadWFBFont("f3",16);
resources.LoadWFBFont("magic",16);
resources.LoadWFBFont("smallface",12);
string lang = options[Options::LANG].str;
std::transform(lang.begin(), lang.end(), lang.begin(), ::tolower);
if (lang.compare("cn") == 0) {
resources.LoadWFBFont("simon",12);
resources.LoadWFBFont("f3",16);
resources.LoadWFBFont("magic",16);
resources.LoadWFBFont("smallface",12);
}
resources.LoadWLBFont("simon",11);
resources.GetWFont("simon")->SetTracking(-1);
resources.LoadWLBFont("f3",16);