summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-04-14 15:05:27 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-04-14 15:05:27 +0100
commit52e811a84298519ef328f50f68d5fc9c216f8c83 (patch)
tree0372802f1b636a6a5abc07937b21761ed5283b2d
parentfc9097fb1f9d4a9705892be382cc18cee62ede93 (diff)
downloadnetsurf-52e811a84298519ef328f50f68d5fc9c216f8c83.tar.gz
netsurf-52e811a84298519ef328f50f68d5fc9c216f8c83.tar.bz2
Don't recalculate next char position
-rwxr-xr-x[-rw-r--r--]amiga/font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amiga/font.c b/amiga/font.c
index df0567f09..21f8b31bf 100644..100755
--- 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);
}