Fix some minor things found looking at Valgrind output

This commit is contained in:
Henrik Rydgård committed 2019-02-27 13:42:00 +01:00
1 parent d7f3f15b85
commit bd71af24db
4 files changed
+9 -7

No files matched your search

+2 -2
View File
@@ -477,7 +477,7 @@ static AtlasTextMetrics BreakLines(const char *text, const AtlasFont &atlasfont,
utfWord = utfPrev;
finished = true;
break;
}
}
}
}
++numChars;
@@ -549,7 +549,7 @@ static AtlasTextMetrics BreakLines(const char *text, const AtlasFont &atlasfont,
}
lineWidth += nextWidth;
u32 cval = utf.next();
u32 cval = utf.end() ? 0 : utf.next();
if (spaceWidth > 0)
{
if (!dryRun)