cleanup; added a TODO to Font class

svn-id: r13308
This commit is contained in:
Max Horn 2004-03-15 18:44:14 +00:00
parent d26f96e9ad
commit 7410f041ee
3 changed files with 17 additions and 5 deletions

View file

@ -363,11 +363,7 @@ void NewGui::drawChar(byte chr, int xx, int yy, OverlayColor color) {
}
int NewGui::getStringWidth(const String &str) {
int space = 0;
for (uint i = 0; i < str.size(); ++i)
space += getCharWidth(str[i]);
return space;
return g_guifont.getStringWidth(str);
}
int NewGui::getCharWidth(byte c) {