Fixed the breakage in the Deck Editor Menu, where the app would hang, looping on trying to word wrap a string. Erwan, pls review. Char is signed here, I'm not sure what the compiler warning was that you saw - NDK related? Does it treat all chars as unsigned?
This commit is contained in:
@@ -222,7 +222,7 @@ float JLBFont::GetStringWidth(const char *string) const
|
||||
{
|
||||
ch = *p - 32;
|
||||
p++;
|
||||
//if (ch < 0) continue; //TODO useless test per compiler's message, char always positive, bug needs fixing here
|
||||
if (ch < 0) continue;
|
||||
len += mCharWidth[ch+mBase] + mTracking;
|
||||
}
|
||||
len -= mTracking;
|
||||
|
||||
Reference in New Issue
Block a user