From 5bc3657824129a7e0f1122a2a17be952f1210588 Mon Sep 17 00:00:00 2001 From: Layla Marchant Date: Mon, 20 Jul 2020 14:09:06 -0400 Subject: [PATCH] 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. --- src/gfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx.c b/src/gfx.c index ccae18c..57f2bab 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -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++; } }