summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-07-05 20:10:17 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-07-05 20:10:17 +0000
commit0ade453958339a28b4291aefd6fd0bd2e5038afd (patch)
tree5a6be53fef4f3790f5902d8ac574c6ef725b29bb /amiga/plotters.c
parentab2391ade1592936b95b106d17a77ff09ba852a8 (diff)
downloadnetsurf-0ade453958339a28b4291aefd6fd0bd2e5038afd.tar.gz
netsurf-0ade453958339a28b4291aefd6fd0bd2e5038afd.tar.bz2
Refactor fill plotter to take a style
svn path=/trunk/netsurf/; revision=8332
Diffstat (limited to 'amiga/plotters.c')
-rwxr-xr-xamiga/plotters.c6
1 files changed, 3 insertions, 3 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);