* src/smooth/ftgrays.c (gray_render_line): Simplify clipping.

This commit is contained in:
Alexei Podtelezhnikov 2015-09-07 13:47:36 -04:00
parent 5a6dc87240
commit b002f6882d
2 changed files with 7 additions and 14 deletions

View File

@ -1,3 +1,7 @@
2015-09-07 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/smooth/ftgrays.c (gray_render_line): Simplify clipping.
2015-09-04 Alexei Podtelezhnikov <apodtele@gmail.com>
[raster,smooth] Microoptimizations.

View File

@ -805,20 +805,9 @@ typedef ptrdiff_t FT_PtrDist;
dy = to_y - ras.y;
/* perform vertical clipping */
{
TCoord min, max;
min = ey1;
max = ey2;
if ( ey1 > ey2 )
{
min = ey2;
max = ey1;
}
if ( min >= ras.max_ey || max < ras.min_ey )
goto End;
}
if ( ( ey1 >= ras.max_ey && ey2 >= ras.max_ey ) ||
( ey1 < ras.min_ey && ey2 < ras.min_ey ) )
goto End;
/* everything is on a single scanline */
if ( ey1 == ey2 )