From cece4d3b5decf533270beba8549b5bfa6b51deed Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Thu, 6 Dec 2012 20:23:38 -0500 Subject: [PATCH] [truetype] Tweak the previous commit. * src/truetype/ttinterp.c (Current_Ratio): Put unit vector components as the second TT_MulFix14 arguments. This is required on 16-bit systems. --- ChangeLog | 8 ++++++++ src/truetype/ttinterp.c | 10 +++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1373f644f..bc7cead84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2012-12-06 Alexei Podtelezhnikov + + [truetype] Tweak the previous commit. + + * src/truetype/ttinterp.c (Current_Ratio): Put unit vector + components as the second TT_MulFix14 arguments. This is required + on 16-bit systems. + 2012-12-06 Alexei Podtelezhnikov [truetype] Microoptimizations in bytecode interpreter. diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c index ffdf74d15..ca27f36f4 100644 --- a/src/truetype/ttinterp.c +++ b/src/truetype/ttinterp.c @@ -233,7 +233,7 @@ /*************************************************************************/ /* */ - /* This macro computes (a*2^14)/b and compliments TT_MulFix14. */ + /* This macro computes (a*2^14)/b and complements TT_MulFix14. */ /* */ #define TT_DivFix14( a, b ) \ FT_DivFix( a, (b) << 2 ) @@ -1671,10 +1671,10 @@ FT_F26Dot6 x, y; - x = TT_MulFix14( CUR.GS.projVector.x, - CUR.tt_metrics.x_ratio ); - y = TT_MulFix14( CUR.GS.projVector.y, - CUR.tt_metrics.y_ratio ); + x = TT_MulFix14( CUR.tt_metrics.x_ratio, + CUR.GS.projVector.x ); + y = TT_MulFix14( CUR.tt_metrics.y_ratio, + CUR.GS.projVector.y ); CUR.tt_metrics.ratio = TT_VecLen( x, y ); } }