summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-03-29 20:57:57 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-03-29 20:57:57 +0000
commitf388785f8aca5c87d54cd997225f927b48e066e1 (patch)
treea5bd8167a21951cc2c12774a9e48cd25cc068b7f /amiga
parentf5587d22a418904989b2fc52030770e03e41a06c (diff)
downloadnetsurf-f388785f8aca5c87d54cd997225f927b48e066e1.tar.gz
netsurf-f388785f8aca5c87d54cd997225f927b48e066e1.tar.bz2
fix text co-ordinate
svn path=/trunk/netsurf/; revision=6987
Diffstat (limited to 'amiga')
-rw-r--r--amiga/font.c4
1 files changed, 2 insertions, 2 deletions
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);
}