freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 21c2b39 1/2: Minor.


From: Werner LEMBERG
Subject: [freetype2] master 21c2b39 1/2: Minor.
Date: Thu, 30 Aug 2018 03:56:25 -0400 (EDT)

branch: master
commit 21c2b3905cb3473da3dd729190f2fb2b66ce1140
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>

    Minor.
---
 src/base/ftobjs.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index fc0cf0d..d4594b5 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -373,7 +373,7 @@
     /* taking into account the origin shift      */
     FT_Outline_Get_CBox( outline, &cbox );
 
-    /* rough estimte of pixel box */
+    /* rough estimate of pixel box */
     pbox.xMin = ( cbox.xMin >> 6 ) + ( x_shift >> 6 );
     pbox.yMin = ( cbox.yMin >> 6 ) + ( y_shift >> 6 );
     pbox.xMax = ( cbox.xMax >> 6 ) + ( x_shift >> 6 );
@@ -398,9 +398,7 @@
         cbox.xMax = cbox.xMin + 64;
       }
       else if ( pbox.xMax - pbox.xMin == 1 )
-      {
         cbox.xMin = cbox.xMax = ( cbox.xMin + cbox.xMax ) / 2;
-      }
 
       pbox.xMin += ( cbox.xMin + 32 ) >> 6;
       pbox.xMax += ( cbox.xMax + 32 ) >> 6;
@@ -411,9 +409,7 @@
         cbox.yMax = cbox.yMin + 64;
       }
       else if ( pbox.yMax - pbox.yMin == 1 )
-      {
         cbox.yMin = cbox.yMax = ( cbox.yMin + cbox.yMax ) / 2;
-      }
 
       pbox.yMin += ( cbox.yMin + 32 ) >> 6;
       pbox.yMax += ( cbox.yMax + 32 ) >> 6;



reply via email to

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