summaryrefslogtreecommitdiff
path: root/src/gd.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-10-01 19:54:10 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-10-01 20:03:14 +0200
commit30453e94b28971558b68c3ca08c0cfca057ff507 (patch)
tree9ce6014f0b40806a2bd6806ad261d19dafe81f69 /src/gd.c
parentd79ea8f1cb3a24f97c79e1b18ae472293180a5a5 (diff)
downloadlibgd-30453e94b28971558b68c3ca08c0cfca057ff507.tar.gz
Test and document filling behavior of self-intersecting polygons
Diffstat (limited to 'src/gd.c')
-rw-r--r--src/gd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gd.c b/src/gd.c
index e2c41e1..2d9803e 100644
--- a/src/gd.c
+++ b/src/gd.c
@@ -3467,8 +3467,8 @@ BGD_DECLARE(void) gdImagePolygon (gdImagePtr im, gdPointPtr p, int n, int c)
*
* Parameters:
* im - The image.
- * p - The vertices.
- * n - The number of vertices as array of <gdPoint>s.
+ * p - The vertices as array of <gdPoint>s.
+ * n - The number of vertices.
* c - The color
*
* See also:
@@ -3506,6 +3506,10 @@ BGD_DECLARE(void) gdImageOpenPolygon (gdImagePtr im, gdPointPtr p, int n, int c)
*
* Draws a filled polygon
*
+ * The polygon is filled using the even-odd fillrule what can leave unfilled
+ * regions inside of self-intersecting polygons. This behavior might change in
+ * a future version.
+ *
* Parameters:
* im - The image.
* p - The vertices as array of <gdPoint>s.