aboutsummaryrefslogtreecommitdiff
path: root/drawing.c
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 /drawing.c
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 'drawing.c')
-rw-r--r--drawing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawing.c b/drawing.c
index a8eb8cf..3584936 100644
--- a/drawing.c
+++ b/drawing.c
@@ -117,7 +117,7 @@ void draw_thick_line(drawing *dr, float thickness,
}
}
-void draw_polygon(drawing *dr, int *coords, int npoints,
+void draw_polygon(drawing *dr, const int *coords, int npoints,
int fillcolour, int outlinecolour)
{
dr->api->draw_polygon(dr->handle, coords, npoints, fillcolour,