From 918aa9d26676cf912528f33dd192dfb180e34a2b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 20 Mar 2013 20:59:00 +0000 Subject: Fix error. --- amiga/font.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'amiga') diff --git a/amiga/font.c b/amiga/font.c index f4ef87822..458e1d06c 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -240,7 +240,6 @@ bool nsfont_split(const plot_font_style_t *fstyle, int x, size_t *char_offset, int *actual_x) { ULONG co; - const char *str_pos = string; uint16 *utf16 = NULL,*outf16 = NULL; uint16 utf16next = 0; FIXED kern = 0; @@ -295,7 +294,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, /* Reached available width, and a space has been found; split there. */ break; - } else if (*(string + str_pos) == ' ') { + } else if (*(string + utf8_pos) == ' ') { *actual_x = tx; coffset = utf8_pos; -- cgit v1.2.3