From 88358f064351e867c73e46783a239265ff9fef7a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 13 Sep 2021 11:04:59 +0100 Subject: Add 'const' to the draw_polygon coords array parameter. Thanks to Mouse for spotting that it was missing. --- drawing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drawing.c') 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, -- cgit v1.1