Commit a0b92bcb47ea6a91a368d890f152631c1f188950

Alexei Podtelezhnikov 2016-09-07T23:19:57

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

diff --git a/ChangeLog b/ChangeLog
index c332389..2fb9dd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-09-07  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/smooth/ftgrays.c (gray_hline): Microptimize.
+
 2016-09-06  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
 	[smooth] Operate in absolute bitmap coordinates.
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 5aa6472..59fafdb 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -1333,7 +1333,7 @@ typedef ptrdiff_t  FT_PtrDist;
         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 );