fixed UI placement of playername in menus

This commit is contained in:
Mark Vejvoda
2011-11-02 19:02:25 +00:00
parent 30e1f45cc7
commit 5dcd9d8714
3 changed files with 12 additions and 7 deletions

View File

@@ -109,7 +109,9 @@ Text * FontMetrics::getTextHandler() {
float FontMetrics::getTextWidth(const string &str) {
if(textHandler != NULL) {
return (textHandler->Advance(str.c_str()) * Font::scaleFontValue);
//printf("str [%s] textHandler->Advance = %f Font::scaleFontValue = %f\n",str.c_str(),textHandler->Advance(str.c_str()),Font::scaleFontValue);
//return (textHandler->Advance(str.c_str()) * Font::scaleFontValue);
return (textHandler->Advance(str.c_str()));
}
else {
float width= 0.f;