From a0b92bcb47ea6a91a368d890f152631c1f188950 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Wed, 7 Sep 2016 23:19:57 -0400 Subject: [PATCH] * src/smooth/ftgrays.c (gray_hline): Microptimize. --- ChangeLog | 4 ++++ src/smooth/ftgrays.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c33238952..2fb9dd4b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-09-07 Alexei Podtelezhnikov + + * src/smooth/ftgrays.c (gray_hline): Microptimize. + 2016-09-06 Alexei Podtelezhnikov [smooth] Operate in absolute bitmap coordinates. diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index 5aa64720b..59fafdb4d 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 );