aboutsummaryrefslogtreecommitdiff
path: root/puzzles.h
diff options
context:
space:
mode:
Diffstat (limited to 'puzzles.h')
-rw-r--r--puzzles.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/puzzles.h b/puzzles.h
index fd3f67f..f0a7e99 100644
--- a/puzzles.h
+++ b/puzzles.h
@@ -248,7 +248,7 @@ void draw_text(drawing *dr, int x, int y, int fonttype, int fontsize,
int align, int colour, const char *text);
void draw_rect(drawing *dr, int x, int y, int w, int h, int colour);
void draw_line(drawing *dr, int x1, int y1, int x2, int y2, int colour);
-void draw_polygon(drawing *dr, int *coords, int npoints,
+void draw_polygon(drawing *dr, const int *coords, int npoints,
int fillcolour, int outlinecolour);
void draw_circle(drawing *dr, int cx, int cy, int radius,
int fillcolour, int outlinecolour);
@@ -700,7 +700,7 @@ struct drawing_api {
void (*draw_rect)(void *handle, int x, int y, int w, int h, int colour);
void (*draw_line)(void *handle, int x1, int y1, int x2, int y2,
int colour);
- void (*draw_polygon)(void *handle, int *coords, int npoints,
+ void (*draw_polygon)(void *handle, const int *coords, int npoints,
int fillcolour, int outlinecolour);
void (*draw_circle)(void *handle, int cx, int cy, int radius,
int fillcolour, int outlinecolour);