shithub: freetype+ttf2subf

Download patch

ref: a0b92bcb47ea6a91a368d890f152631c1f188950
parent: 9d0a3bd84804926c13808060fc9585a76648ef83
author: Alexei Podtelezhnikov <[email protected]>
date: Wed Sep 7 19:19:57 EDT 2016

* src/smooth/ftgrays.c (gray_hline): Microptimize.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-09-07  Alexei Podtelezhnikov  <[email protected]>
+
+	* src/smooth/ftgrays.c (gray_hline): Microptimize.
+
 2016-09-06  Alexei Podtelezhnikov  <[email protected]>
 
 	[smooth] Operate in absolute bitmap coordinates.
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -1333,7 +1333,7 @@
         TArea  area;
 
 
-        if ( cell->x > x && cover != 0 )
+        if ( cover != 0 && cell->x > x )
           gray_hline( RAS_VAR_ x, y, (TArea)cover * ( ONE_PIXEL * 2 ),
                       cell->x - x );