summaryrefslogtreecommitdiff
path: root/desktop/knockout.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/knockout.c')
-rw-r--r--desktop/knockout.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/knockout.c b/desktop/knockout.c
index 678b83297..d99c96909 100644
--- a/desktop/knockout.c
+++ b/desktop/knockout.c
@@ -90,7 +90,7 @@ static bool knockout_plot_rectangle(int x0, int y0, int width, int height,
int line_width, colour c, bool dotted, bool dashed);
static bool knockout_plot_line(int x0, int y0, int x1, int y1, int width,
colour c, bool dotted, bool dashed);
-static bool knockout_plot_polygon(int *p, unsigned int n, colour fill);
+static bool knockout_plot_polygon(const int *p, unsigned int n, colour fill);
static bool knockout_plot_fill(int x0, int y0, int x1, int y1, colour c);
static bool knockout_plot_clip(int clip_x0, int clip_y0,
int clip_x1, int clip_y1);
@@ -107,8 +107,8 @@ static bool knockout_plot_bitmap_tile(int x, int y, int width, int height,
static bool knockout_plot_flush(void);
static bool knockout_plot_group_start(const char *name);
static bool knockout_plot_group_end(void);
-static bool knockout_plot_path(float *p, unsigned int n, colour fill,
- float width, colour c, float *transform);
+static bool knockout_plot_path(const float *p, unsigned int n, colour fill,
+ float width, colour c, const float transform[6]);
const struct plotter_table knockout_plotters = {
@@ -704,7 +704,7 @@ bool knockout_plot_line(int x0, int y0, int x1, int y1, int width,
}
-bool knockout_plot_polygon(int *p, unsigned int n, colour fill)
+bool knockout_plot_polygon(const int *p, unsigned int n, colour fill)
{
bool success = true;
int *dest;
@@ -734,8 +734,8 @@ bool knockout_plot_polygon(int *p, unsigned int n, colour fill)
}
-bool knockout_plot_path(float *p, unsigned int n, colour fill,
- float width, colour c, float *transform)
+bool knockout_plot_path(const float *p, unsigned int n, colour fill,
+ float width, colour c, const float transform[6])
{
knockout_plot_flush();
return real_plot.path(p, n, fill, width, c, transform);