From 0ade453958339a28b4291aefd6fd0bd2e5038afd Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 5 Jul 2009 20:10:17 +0000 Subject: Refactor fill plotter to take a style svn path=/trunk/netsurf/; revision=8332 --- amiga/plotters.c | 6 +++--- amiga/plotters.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'amiga') diff --git a/amiga/plotters.c b/amiga/plotters.c index 28917c781..98b95b527 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -235,13 +235,13 @@ bool ami_polygon(const int *p, unsigned int n, colour fill) return true; } -bool ami_fill(int x0, int y0, int x1, int y1, colour c) +bool ami_fill(int x0, int y0, int x1, int y1, plot_style_t *style) { #ifndef NS_AMIGA_CAIRO_ALL p96RectFill(currp,x0,y0,x1-1,y1-1, - p96EncodeColor(RGBFB_A8B8G8R8,c)); + p96EncodeColor(RGBFB_A8B8G8R8, style->fill_colour)); #else - ami_cairo_set_colour(glob.cr,c); + ami_cairo_set_colour(glob.cr, style->fill_colour); ami_cairo_set_solid(glob.cr); cairo_set_line_width(glob.cr, 0); diff --git a/amiga/plotters.h b/amiga/plotters.h index a03b5eff1..01c6c99ec 100755 --- a/amiga/plotters.h +++ b/amiga/plotters.h @@ -28,7 +28,7 @@ bool ami_rectangle(int x0, int y0, int width, int height, bool ami_line(int x0, int y0, int x1, int y1, int width, colour c, bool dotted, bool dashed); bool ami_polygon(const int *p, unsigned int n, colour fill); -bool ami_fill(int x0, int y0, int x1, int y1, colour c); +bool ami_fill(int x0, int y0, int x1, int y1, plot_style_t *style); bool ami_clip(int x0, int y0, int x1, int y1); bool ami_text(int x, int y, const struct css_style *style, const char *text, size_t length, colour bg, colour c); -- cgit v1.2.3