i - 1 instead of i for breaking text.

That's the right character to pick. It's actually still broken; will
look into more later. Will also need to make it so that it ignores
leading whitespace.
This commit is contained in:
Layla Marchant 2020-07-20 14:09:06 -04:00
parent 0201eddbe5
commit 5bc3657824
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ int gfx_renderUnicodeBase(const char *in, int x, int y, int real_x, int fontColo
{
if (logAttrs[i].is_line_break)
{
breakPoints[nBreakPoints] = i;
breakPoints[nBreakPoints] = i - 1;
nBreakPoints++;
}
}