From a959faee3de096db9852ee7e525441a82beacc82 Mon Sep 17 00:00:00 2001 From: Joaquim Date: Mon, 9 Sep 2024 10:42:56 +0100 Subject: [PATCH] The psl_patch() function is intended for small polygons but it doesn't fill them. (#8579) --- src/postscriptlight.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/postscriptlight.c b/src/postscriptlight.c index ee5f678deb7..54b52b56ac5 100644 --- a/src/postscriptlight.c +++ b/src/postscriptlight.c @@ -1744,6 +1744,7 @@ static int psl_patch (struct PSL_CTRL *PSL, double *x, double *y, int np) { n1 = --n; for (i = n - 1; i >= 0; i--, n--) PSL_command (PSL, "%d %d ", ix[n] - ix[i], iy[n] - iy[i]); PSL_command (PSL, "%d %d %d SP\n", n1, ix[0], iy[0]); + PSL_command(PSL, "FO\n"); /* Close polygon and stroke/fill as set by PSL_setfill */ return (PSL_NO_ERROR); }