summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/plotters.c6
-rwxr-xr-xamiga/plotters.h2
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);