cleanup; added a TODO to Font class
svn-id: r13308
This commit is contained in:
parent
d26f96e9ad
commit
7410f041ee
3 changed files with 17 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue