diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2008-04-07 11:15:09 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2008-04-07 11:15:09 +0000 |
commit | 59641def822ba66ed9bf3ae73ed53dffe45a992c (patch) | |
tree | 471343dc45ddfa4549c94f48ba4019998b99a675 /desktop/knockout.c | |
parent | 79acb8b08c22ad15a54f93e66516904fe133232d (diff) | |
download | netsurf-59641def822ba66ed9bf3ae73ed53dffe45a992c.tar.gz netsurf-59641def822ba66ed9bf3ae73ed53dffe45a992c.tar.bz2 |
const fixes in plotters and history core
svn path=/trunk/netsurf/; revision=4083
Diffstat (limited to 'desktop/knockout.c')
-rw-r--r-- | desktop/knockout.c | 6 |
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; |