From b579b0deb39c067f19bebcb4acfb29d7ef87f258 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 29 Apr 2010 23:05:52 +0000 Subject: Don't check if the next character is outside the printable string, if it is it'll pick up the NULL terminator anyway. svn path=/trunk/netsurf/; revision=10523 --- amiga/font.c | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/amiga/font.c b/amiga/font.c index 95c8a47af..67d65cdde 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -111,7 +111,7 @@ bool nsfont_position_in_string(const plot_font_style_t *fstyle, *char_offset = length; - for(i=0;iolf_EEngine, OT_GlyphCode, *utf16, @@ -221,7 +218,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, *char_offset = 0; *actual_x = 0; - for(i=0;iolf_EEngine, OT_GlyphCode, *utf16, @@ -354,17 +348,14 @@ ULONG ami_unicode_text(struct RastPort *rp,const char *string,ULONG length,const dy++; - for(i=0;iolf_EEngine, OT_GlyphCode, *utf16, -- cgit v1.2.3