summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/history_core.c2
-rw-r--r--desktop/knockout.c6
-rw-r--r--desktop/plotters.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/desktop/history_core.c b/desktop/history_core.c
index 0550f596d..2081d132d 100644
--- a/desktop/history_core.c
+++ b/desktop/history_core.c
@@ -225,7 +225,7 @@ void history_add(struct history *history, struct content *content,
struct history_entry *entry;
char *url;
char *title;
- const struct bitmap *bitmap;
+ struct bitmap *bitmap;
assert(history);
assert(content);
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;
diff --git a/desktop/plotters.h b/desktop/plotters.h
index c0515e31b..79eac8170 100644
--- a/desktop/plotters.h
+++ b/desktop/plotters.h
@@ -40,8 +40,8 @@ struct plotter_table {
bool (*polygon)(int *p, unsigned int n, colour fill);
bool (*fill)(int x0, int y0, int x1, int y1, colour c);
bool (*clip)(int x0, int y0, int x1, int y1);
- bool (*text)(int x, int y, struct css_style *style, const char *text,
- size_t length, colour bg, colour c);
+ bool (*text)(int x, int y, const struct css_style *style,
+ const char *text, size_t length, colour bg, colour c);
bool (*disc)(int x, int y, int radius, colour c, bool filled);
bool (*arc)(int x, int y, int radius, int angle1, int angle2,
colour c);