summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-03-28 14:12:31 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-03-28 14:12:31 +0000
commit3179a891d609ce5be3f25fda7696e33446159e61 (patch)
tree8dc66f8a6215e81470c7986cd893a3cc1b55ab8d
parent2cfe83a9214fd4be783d8a0a465eb2539cf427b2 (diff)
downloadnetsurf-3179a891d609ce5be3f25fda7696e33446159e61.tar.gz
netsurf-3179a891d609ce5be3f25fda7696e33446159e61.tar.bz2
Fix actual_x
svn path=/trunk/netsurf/; revision=6968
-rw-r--r--amiga/font.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/amiga/font.c b/amiga/font.c
index 7d1da082b..a94bf5cb7 100644
--- a/amiga/font.c
+++ b/amiga/font.c
@@ -139,7 +139,6 @@ bool nsfont_position_in_string(const struct css_style *style,
OT_GlyphMap8Bit,&glyph,
TAG_END) == 0)
{
- *actual_x = tx;
if(utf8_from_enc(utf16,"UTF-16",4,&utf8) != UTF8_CONVERT_OK) return;
utf8len = utf8_char_byte_length(utf8);
free(utf8);
@@ -154,6 +153,7 @@ bool nsfont_position_in_string(const struct css_style *style,
}
tx+= glyph->glm_X1;
+ *actual_x = tx;
EReleaseInfo(&ofont->olf_EEngine,
OT_GlyphMap8Bit,glyph,
@@ -166,6 +166,7 @@ bool nsfont_position_in_string(const struct css_style *style,
utf16 += 2;
}
*char_offset = co;
+ if(co == 0) *actual_x = 0;
free(outf16);
}