aboutsummaryrefslogtreecommitdiff
path: root/gtk.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 /gtk.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 'gtk.c')
-rw-r--r--gtk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk.c b/gtk.c
index 2a011fd..7710b4e 100644
--- a/gtk.c
+++ b/gtk.c
@@ -571,7 +571,7 @@ static void do_draw_thick_line(frontend *fe, float thickness,
cairo_restore(fe->cr);
}
-static void do_draw_poly(frontend *fe, int *coords, int npoints,
+static void do_draw_poly(frontend *fe, const int *coords, int npoints,
int fillcolour, int outlinecolour)
{
int i;
@@ -832,7 +832,7 @@ static void do_draw_thick_line(frontend *fe, float thickness,
save.join_style);
}
-static void do_draw_poly(frontend *fe, int *coords, int npoints,
+static void do_draw_poly(frontend *fe, const int *coords, int npoints,
int fillcolour, int outlinecolour)
{
GdkPoint *points = snewn(npoints, GdkPoint);
@@ -1206,7 +1206,7 @@ void gtk_draw_thick_line(void *handle, float thickness,
do_draw_thick_line(fe, thickness, x1, y1, x2, y2);
}
-void gtk_draw_poly(void *handle, int *coords, int npoints,
+void gtk_draw_poly(void *handle, const int *coords, int npoints,
int fillcolour, int outlinecolour)
{
frontend *fe = (frontend *)handle;