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

This commit is contained in:
Alexei Podtelezhnikov 2016-09-07 23:19:57 -04:00
parent 9d0a3bd848
commit a0b92bcb47
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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 );