summaryrefslogtreecommitdiff
path: root/amiga/font.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-05-18 13:34:36 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-05-18 13:34:36 +0100
commit5fcdbb80f03e445d1b1f9206d31c1d5afe6fb4ca (patch)
treeb7677622533ebcedb4c7ddb903cc65f153b94f4f /amiga/font.c
parent13e667ff78f66029cfcae00ca7737144e13a3ff7 (diff)
downloadnetsurf-5fcdbb80f03e445d1b1f9206d31c1d5afe6fb4ca.tar.gz
netsurf-5fcdbb80f03e445d1b1f9206d31c1d5afe6fb4ca.tar.bz2
Try to avoid the split point jumping around when it occurs exactly on the boundary requested
Diffstat (limited to 'amiga/font.c')
-rwxr-xr-xamiga/font.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/amiga/font.c b/amiga/font.c
index e624d5677..5ec52032f 100755
--- a/amiga/font.c
+++ b/amiga/font.c
@@ -341,15 +341,14 @@ bool nsfont_split(const plot_font_style_t *fstyle,
}
}
- tx += tempx;
-
if ((x < tx) && (*char_offset != 0)) {
/* Reached available width, and a space was found;
* split there. */
free(outf16);
return true;
}
-
+
+ tx += tempx;
utf16 = utf16next;
utf8_pos = utf8_next(string, length, utf8_pos);
}