aboutsummaryrefslogtreecommitdiff
path: root/devel.but
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2021-09-13 11:04:59 +0100
committerSimon Tatham <anakin@pobox.com>2021-09-13 11:04:59 +0100
commit88358f064351e867c73e46783a239265ff9fef7a (patch)
tree10639b554ae7ce4d09402a01ca5668a9cbf1721c /devel.but
parentd204978391141a68b338732ce24271402392534f (diff)
downloadpuzzles-88358f064351e867c73e46783a239265ff9fef7a.zip
puzzles-88358f064351e867c73e46783a239265ff9fef7a.tar.gz
puzzles-88358f064351e867c73e46783a239265ff9fef7a.tar.bz2
puzzles-88358f064351e867c73e46783a239265ff9fef7a.tar.xz
Add 'const' to the draw_polygon coords array parameter.
Thanks to Mouse for spotting that it was missing.
Diffstat (limited to 'devel.but')
-rw-r--r--devel.but4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel.but b/devel.but
index 7e7aa1f..76d6efa 100644
--- a/devel.but
+++ b/devel.but
@@ -1935,7 +1935,7 @@ This function may be used for both drawing and printing.
\S{drawing-draw-polygon} \cw{draw_polygon()}
-\c void draw_polygon(drawing *dr, int *coords, int npoints,
+\c void draw_polygon(drawing *dr, const int *coords, int npoints,
\c int fillcolour, int outlinecolour);
Draws an outlined or filled polygon in the puzzle window.
@@ -2497,7 +2497,7 @@ function; see \k{drawing-draw-line}.
\S{drawingapi-draw-polygon} \cw{draw_polygon()}
-\c void (*draw_polygon)(void *handle, int *coords, int npoints,
+\c void (*draw_polygon)(void *handle, const int *coords, int npoints,
\c int fillcolour, int outlinecolour);
This function behaves exactly like the back end \cw{draw_polygon()}