freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 815c324 1/2: Minor.


From: Alexei Podtelezhnikov
Subject: [freetype2] master 815c324 1/2: Minor.
Date: Tue, 18 Aug 2015 03:00:01 +0000

branch: master
commit 815c32469b378737e9f36da327a181586bd48e18
Author: Alexei Podtelezhnikov <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>

    Minor.
---
 ChangeLog          |    2 +-
 src/base/ftoutln.c |    9 ++++-----
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f9eb59e..cf9ad5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,6 @@
 2015-08-16  Alexei Podtelezhnikov  <address@hidden>
 
-       [base] Reoptimize aritmetic.
+       [base] Reoptimize arithmetic.
 
        * src/base/ftcalc.c (FT_MulDiv, FT_MulFix) [!FT_LONG64]: Remove
        special cases that slow down the general use.
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index ce4bd6c..8804cc7 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -937,7 +937,7 @@
     {
       FT_Vector  in, out, shift;
       FT_Fixed   l_in, l_out, l, q, d;
-      int        last = outline->contours[c];
+      FT_Int     last = outline->contours[c];
 
 
       v_first = points[first];
@@ -968,8 +968,7 @@
         {
           d = d + 0x10000L;
 
-          /* shift components are aligned along lateral bisector */
-          /* and directed according to the outline orientation.  */
+          /* shift along lateral bisector in appropriate orientation */
           shift.x = in.y + out.y;
           shift.y = in.x + out.x;
 
@@ -1000,8 +999,8 @@
         else
           shift.x = shift.y = 0;
 
-        outline->points[n].x = v_cur.x + xstrength + shift.x;
-        outline->points[n].y = v_cur.y + ystrength + shift.y;
+        points[n].x = v_cur.x + xstrength + shift.x;
+        points[n].y = v_cur.y + ystrength + shift.y;
 
         in    = out;
         l_in  = l_out;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]