From 52e811a84298519ef328f50f68d5fc9c216f8c83 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 14 Apr 2013 15:05:27 +0100 Subject: Don't recalculate next char position --- amiga/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 amiga/font.c diff --git a/amiga/font.c b/amiga/font.c old mode 100644 new mode 100755 index df0567f09..21f8b31bf --- a/amiga/font.c +++ b/amiga/font.c @@ -239,7 +239,7 @@ bool nsfont_position_in_string(const plot_font_style_t *fstyle, } tx += tempx; - utf16 += utf16charlen; + utf16 = utf16next; utf8_pos = utf8_next(string, length, utf8_pos); if(tx < x) { @@ -350,7 +350,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, return true; } - utf16 += utf16charlen; + utf16 = utf16next; utf8_pos = utf8_next(string, length, utf8_pos); } -- cgit v1.2.3