summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2008-04-07 11:15:09 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2008-04-07 11:15:09 +0000
commit59641def822ba66ed9bf3ae73ed53dffe45a992c (patch)
tree471343dc45ddfa4549c94f48ba4019998b99a675 /riscos
parent79acb8b08c22ad15a54f93e66516904fe133232d (diff)
downloadnetsurf-59641def822ba66ed9bf3ae73ed53dffe45a992c.tar.gz
netsurf-59641def822ba66ed9bf3ae73ed53dffe45a992c.tar.bz2
const fixes in plotters and history core
svn path=/trunk/netsurf/; revision=4083
Diffstat (limited to 'riscos')
-rw-r--r--riscos/font.c2
-rw-r--r--riscos/gui.h2
-rw-r--r--riscos/plotters.c4
-rw-r--r--riscos/print.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/riscos/font.c b/riscos/font.c
index 0898175dc..d320b2070 100644
--- a/riscos/font.c
+++ b/riscos/font.c
@@ -368,7 +368,7 @@ bool nsfont_split(const struct css_style *style,
* \return true on success, false on error and error reported
*/
-bool nsfont_paint(struct css_style *style, const char *string,
+bool nsfont_paint(const struct css_style *style, const char *string,
size_t length, int x, int y, float scale)
{
const char *font_family;
diff --git a/riscos/gui.h b/riscos/gui.h
index ee7ed896f..2c7d024b2 100644
--- a/riscos/gui.h
+++ b/riscos/gui.h
@@ -208,7 +208,7 @@ void ro_gui_print_prepare(struct gui_window *g);
void nsfont_init(void);
bool nsfont_exists(const char *font_family);
const char *nsfont_fallback_font(void);
-bool nsfont_paint(struct css_style *style, const char *string,
+bool nsfont_paint(const struct css_style *style, const char *string,
size_t length, int x, int y, float scale);
void nsfont_read_style(const struct css_style *style,
const char **font_family, unsigned int *font_size,
diff --git a/riscos/plotters.c b/riscos/plotters.c
index 1044df3a4..da890abad 100644
--- a/riscos/plotters.c
+++ b/riscos/plotters.c
@@ -46,7 +46,7 @@ static bool ro_plot_path(float *p, unsigned int n, colour fill, float width,
static bool ro_plot_fill(int x0, int y0, int x1, int y1, colour c);
static bool ro_plot_clip(int clip_x0, int clip_y0,
int clip_x1, int clip_y1);
-static bool ro_plot_text(int x, int y, struct css_style *style,
+static bool ro_plot_text(int x, int y, const struct css_style *style,
const char *text, size_t length, colour bg, colour c);
static bool ro_plot_disc(int x, int y, int radius, colour colour, bool filled);
static bool ro_plot_arc(int x, int y, int radius, int angle1, int angle2,
@@ -395,7 +395,7 @@ bool ro_plot_clip(int clip_x0, int clip_y0,
}
-bool ro_plot_text(int x, int y, struct css_style *style,
+bool ro_plot_text(int x, int y, const struct css_style *style,
const char *text, size_t length, colour bg, colour c)
{
os_error *error;
diff --git a/riscos/print.c b/riscos/print.c
index 411e80a15..66d1774e1 100644
--- a/riscos/print.c
+++ b/riscos/print.c
@@ -106,7 +106,7 @@ static bool print_fonts_plot_polygon(int *p, unsigned int n, colour fill);
static bool print_fonts_plot_fill(int x0, int y0, int x1, int y1, colour c);
static bool print_fonts_plot_clip(int clip_x0, int clip_y0,
int clip_x1, int clip_y1);
-static bool print_fonts_plot_text(int x, int y, struct css_style *style,
+static bool print_fonts_plot_text(int x, int y, const struct css_style *style,
const char *text, size_t length, colour bg, colour c);
static bool print_fonts_plot_disc(int x, int y, int radius, colour c,
bool filled);
@@ -843,7 +843,7 @@ bool print_fonts_plot_group_end(void) { return true; }
* Plotter for text plotting during font listing.
*/
-bool print_fonts_plot_text(int x, int y, struct css_style *style,
+bool print_fonts_plot_text(int x, int y, const struct css_style *style,
const char *text, size_t length, colour bg, colour c)
{
const char *font_family;