From 59641def822ba66ed9bf3ae73ed53dffe45a992c Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Mon, 7 Apr 2008 11:15:09 +0000 Subject: const fixes in plotters and history core svn path=/trunk/netsurf/; revision=4083 --- desktop/history_core.c | 2 +- desktop/knockout.c | 6 +++--- desktop/plotters.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'desktop') 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); -- cgit v1.2.3