Commit 14504fca authored by Po Lu's avatar Po Lu
Browse files

Fix typo in earlier changes

* src/sfnt.c (sfnt_poly_edges_exact): Don't overwrite the
remainder of an ascending edge with its covered height.
(main): Adjust tests.
parent 8e06f224
Pipeline #27535 failed with stages
in 96 minutes and 53 seconds
......@@ -5270,9 +5270,9 @@ increase to the Y of the edge for each increase in scanline X. */
/* Fill the remainder of the scanline with
height-derived coverage. */
 
if (x_pixel_max < width)
APPEND_STEP (x_pixel_max, ((y_top - y_bot)
* a->winding - last));
if (x_pixel_max + 1 < width)
APPEND_STEP (x_pixel_max + 1, ((y_top - y_bot)
* a->winding - last));
}
else /* if (x_bot > x_top) */
{
......@@ -20508,8 +20508,8 @@ main (int argc, char **argv)
return 1;
}
 
#define FANCY_PPEM 30
#define EASY_PPEM 30
#define FANCY_PPEM 12
#define EASY_PPEM 12
 
interpreter = NULL;
head = sfnt_read_head_table (fd, font);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment