summaryrefslogtreecommitdiff
path: root/desktop/knockout.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/knockout.c')
-rw-r--r--desktop/knockout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/knockout.c b/desktop/knockout.c
index 842c4cb85..f57ae5b54 100644
--- a/desktop/knockout.c
+++ b/desktop/knockout.c
@@ -55,7 +55,7 @@ static bool knockout_plot_path(float *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);
-static bool knockout_plot_text(int x, int y, struct css_style *style,
+static bool knockout_plot_text(int x, int y, const struct css_style *style,
const char *text, size_t length, colour bg, colour c);
static bool knockout_plot_disc(int x, int y, int radius, colour colour, bool filled);
static bool knockout_plot_arc(int x, int y, int radius, int angle1, int angle2,
@@ -166,7 +166,7 @@ struct knockout_entry {
struct {
int x;
int y;
- struct css_style *style;
+ const struct css_style *style;
const char *text;
size_t length;
colour bg;
@@ -757,7 +757,7 @@ bool knockout_plot_clip(int clip_x0, int clip_y0,
}
-bool knockout_plot_text(int x, int y, struct css_style *style,
+bool knockout_plot_text(int x, int y, const struct css_style *style,
const char *text, size_t length, colour bg, colour c)
{
knockout_entries[knockout_entry_cur].data.text.x = x;