mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 16:02:50 +02:00
fixed UI placement of playername in menus
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user