diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-04-14 15:05:27 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-04-14 15:05:27 +0100 |
commit | 52e811a84298519ef328f50f68d5fc9c216f8c83 (patch) | |
tree | 0372802f1b636a6a5abc07937b21761ed5283b2d /amiga/font.c | |
parent | fc9097fb1f9d4a9705892be382cc18cee62ede93 (diff) | |
download | netsurf-52e811a84298519ef328f50f68d5fc9c216f8c83.tar.gz netsurf-52e811a84298519ef328f50f68d5fc9c216f8c83.tar.bz2 |
Don't recalculate next char position
Diffstat (limited to 'amiga/font.c')
-rwxr-xr-x[-rw-r--r--] | amiga/font.c | 4 |
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); } |