* src/smooth/ftgrays.c (gray_hline): Simplify even-odd computations.

It is too bad the even-odd rule is not used much.
wl/meson-logging
Alexei Podtelezhnikov 4 years ago
parent 967a34eee3
commit b070264521
  1. 6
      ChangeLog
  2. 6
      src/smooth/ftgrays.c

@ -1,3 +1,9 @@
2021-05-10 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/smooth/ftgrays.c (gray_hline): Simplify even-odd computations.
It is too bad the even-odd rule is not used much.
2021-05-07 Alexei Podtelezhnikov <apodtele@gmail.com>
[type1] Avoid MM memory zeroing.

@ -1182,10 +1182,10 @@ typedef ptrdiff_t FT_PtrDist;
/* compute the line's coverage depending on the outline fill rule */
if ( ras.outline.flags & FT_OUTLINE_EVEN_ODD_FILL )
{
coverage &= 511;
if ( coverage & 256 ) /* odd bit */
coverage = ~coverage;
if ( coverage >= 256 )
coverage = 511 - coverage;
/* higher bits discarded below */
}
else /* default non-zero winding rule */
{

Loading…
Cancel
Save