From f388785f8aca5c87d54cd997225f927b48e066e1 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 29 Mar 2009 20:57:57 +0000 Subject: fix text co-ordinate svn path=/trunk/netsurf/; revision=6987 --- amiga/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'amiga/font.c') diff --git a/amiga/font.c b/amiga/font.c index a94bf5cb7..2abe5847c 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -152,8 +152,8 @@ bool nsfont_position_in_string(const struct css_style *style, co += utf8len; } - tx+= glyph->glm_X1; *actual_x = tx; + tx+= glyph->glm_X1; EReleaseInfo(&ofont->olf_EEngine, OT_GlyphMap8Bit,glyph, @@ -166,7 +166,7 @@ bool nsfont_position_in_string(const struct css_style *style, utf16 += 2; } *char_offset = co; - if(co == 0) *actual_x = 0; + if(co>=length) *actual_x = tx; free(outf16); } -- cgit v1.2.3