summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtk_plotters.c12
-rw-r--r--gtk/gtk_print.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/gtk/gtk_plotters.c b/gtk/gtk_plotters.c
index 2f03cc1bb..e73d4519c 100644
--- a/gtk/gtk_plotters.c
+++ b/gtk/gtk_plotters.c
@@ -54,9 +54,9 @@ static bool nsgtk_plot_rectangle(int x0, int y0, int width, int height,
int line_width, colour c, bool dotted, bool dashed);
static bool nsgtk_plot_line(int x0, int y0, int x1, int y1, int width,
colour c, bool dotted, bool dashed);
-static bool nsgtk_plot_polygon(int *p, unsigned int n, colour fill);
-static bool nsgtk_plot_path(float *p, unsigned int n, colour fill, float width,
- colour c, float *transform);
+static bool nsgtk_plot_polygon(const int *p, unsigned int n, colour fill);
+static bool nsgtk_plot_path(const float *p, unsigned int n, colour fill, float width,
+ colour c, const float transform[6]);
static bool nsgtk_plot_fill(int x0, int y0, int x1, int y1, colour c);
static bool nsgtk_plot_clip(int clip_x0, int clip_y0,
int clip_x1, int clip_y1);
@@ -149,7 +149,7 @@ bool nsgtk_plot_line(int x0, int y0, int x1, int y1, int width,
}
-bool nsgtk_plot_polygon(int *p, unsigned int n, colour fill)
+bool nsgtk_plot_polygon(const int *p, unsigned int n, colour fill)
{
unsigned int i;
@@ -341,8 +341,8 @@ bool nsgtk_plot_bitmap_tile(int x, int y, int width, int height,
return true;
}
-bool nsgtk_plot_path(float *p, unsigned int n, colour fill, float width,
- colour c, float *transform)
+bool nsgtk_plot_path(const float *p, unsigned int n, colour fill, float width,
+ colour c, const float transform[6])
{
unsigned int i;
cairo_matrix_t old_ctm, n_ctm;
diff --git a/gtk/gtk_print.c b/gtk/gtk_print.c
index 1b03f5532..4ac8956f5 100644
--- a/gtk/gtk_print.c
+++ b/gtk/gtk_print.c
@@ -55,9 +55,9 @@ static bool nsgtk_print_plot_rectangle(int x0, int y0, int width, int height,
int line_width, colour c, bool dotted, bool dashed);
static bool nsgtk_print_plot_line(int x0, int y0, int x1, int y1, int width,
colour c, bool dotted, bool dashed);
-static bool nsgtk_print_plot_polygon(int *p, unsigned int n, colour fill);
-static bool nsgtk_print_plot_path(float *p, unsigned int n, colour fill, float width,
- colour c, float *transform);
+static bool nsgtk_print_plot_polygon(const int *p, unsigned int n, colour fill);
+static bool nsgtk_print_plot_path(const float *p, unsigned int n, colour fill, float width,
+ colour c, const float transform[6]);
static bool nsgtk_print_plot_fill(int x0, int y0, int x1, int y1, colour c);
static bool nsgtk_print_plot_clip(int clip_x0, int clip_y0,
int clip_x1, int clip_y1);
@@ -170,7 +170,7 @@ bool nsgtk_print_plot_line(int x0, int y0, int x1, int y1, int width,
}
-bool nsgtk_print_plot_polygon(int *p, unsigned int n, colour fill)
+bool nsgtk_print_plot_polygon(const int *p, unsigned int n, colour fill)
{
LOG(("Plotting polygon."));
@@ -385,8 +385,8 @@ bool nsgtk_print_plot_bitmap_tile(int x, int y, int width, int height,
return true;
}
-bool nsgtk_print_plot_path(float *p, unsigned int n, colour fill, float width,
- colour c, float *transform)
+bool nsgtk_print_plot_path(const float *p, unsigned int n, colour fill, float width,
+ colour c, const float transform[6])
{
/* Only the internal SVG renderer uses this plot call currently,
* and the GTK version uses librsvg. Thus, we ignore this complexity,