diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-07-05 20:10:17 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-07-05 20:10:17 +0000 |
commit | 0ade453958339a28b4291aefd6fd0bd2e5038afd (patch) | |
tree | 5a6be53fef4f3790f5902d8ac574c6ef725b29bb /amiga | |
parent | ab2391ade1592936b95b106d17a77ff09ba852a8 (diff) | |
download | netsurf-0ade453958339a28b4291aefd6fd0bd2e5038afd.tar.gz netsurf-0ade453958339a28b4291aefd6fd0bd2e5038afd.tar.bz2 |
Refactor fill plotter to take a style
svn path=/trunk/netsurf/; revision=8332
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/plotters.c | 6 | ||||
-rwxr-xr-x | amiga/plotters.h | 2 |
2 files changed, 4 insertions, 4 deletions
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); |