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. --- ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ps.c') diff --git a/ps.c b/ps.c index ab8a158..d0ea0ff 100644 --- a/ps.c +++ b/ps.c @@ -157,7 +157,7 @@ static void ps_draw_line(void *handle, int x1, int y1, int x2, int y2, ps_stroke(ps, colour); } -static void ps_draw_polygon(void *handle, int *coords, int npoints, +static void ps_draw_polygon(void *handle, const int *coords, int npoints, int fillcolour, int outlinecolour) { psdata *ps = (psdata *)handle; -- cgit v1.1