summaryrefslogtreecommitdiff
path: root/src/sfnt.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2023-12-18 13:32:56 +0800
committerPo Lu <luangruo@yahoo.com>2023-12-18 13:34:29 +0800
commit14504fca8b5589c5c80a69dcab6e02681b196fa1 (patch)
tree81dd4efc2de633b7afe761bce5bb7eb71ef44551 /src/sfnt.c
parent8e06f224a9e275776d422ce3dbc30defdb563867 (diff)
downloademacs-14504fca8b5589c5c80a69dcab6e02681b196fa1.tar.gz
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.
Diffstat (limited to 'src/sfnt.c')
-rw-r--r--src/sfnt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sfnt.c b/src/sfnt.c
index 7d43f06b748..8bc37c1b978 100644
--- a/src/sfnt.c
+++ b/src/sfnt.c
@@ -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);