diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-08-03 12:54:50 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-08-03 12:54:50 +0100 |
commit | f4d04cefc0ba45717fb8bdda718200a0fcd997ba (patch) | |
tree | d9fc58d554f3bdab9fd01c56bcd494449be70d7d /amiga/font.c | |
parent | 5382387c7ddabadf964b6883d6b9dca031a6c132 (diff) | |
download | netsurf-f4d04cefc0ba45717fb8bdda718200a0fcd997ba.tar.gz netsurf-f4d04cefc0ba45717fb8bdda718200a0fcd997ba.tar.bz2 |
Revert nsfont_split back to how it was before I started meddling with it.
Diffstat (limited to 'amiga/font.c')
-rwxr-xr-x | amiga/font.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/amiga/font.c b/amiga/font.c index 21f26358f..310d8bec3 100755 --- a/amiga/font.c +++ b/amiga/font.c @@ -327,8 +327,6 @@ bool nsfont_split(const plot_font_style_t *fstyle, utf16next, emwidth); } - tx += tempx; - /* Check whether we have a space */ if (*(string + utf8_pos) == ' ') { /* Got a space */ @@ -343,6 +341,8 @@ 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. */ @@ -352,7 +352,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, utf16 = utf16next; utf8_pos = utf8_next(string, length, utf8_pos); - }; + } free(outf16); |