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 --- beos/beos_plotters.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'beos') diff --git a/beos/beos_plotters.cpp b/beos/beos_plotters.cpp index dabd95821..29fe58f2a 100644 --- a/beos/beos_plotters.cpp +++ b/beos/beos_plotters.cpp @@ -68,7 +68,7 @@ static bool nsbeos_plot_line(int x0, int y0, int x1, int y1, int width, static bool nsbeos_plot_polygon(const int *p, unsigned int n, colour fill); static bool nsbeos_plot_path(const float *p, unsigned int n, colour fill, float width, colour c, const float transform[6]); -static bool nsbeos_plot_fill(int x0, int y0, int x1, int y1, colour c); +static bool nsbeos_plot_fill(int x0, int y0, int x1, int y1, plot_style_t *style); static bool nsbeos_plot_clip(int clip_x0, int clip_y0, int clip_x1, int clip_y1); static bool nsbeos_plot_text(int x, int y, const struct css_style *style, @@ -301,7 +301,7 @@ bool nsbeos_plot_polygon(const int *p, unsigned int n, colour fill) } -bool nsbeos_plot_fill(int x0, int y0, int x1, int y1, colour c) +bool nsbeos_plot_fill(int x0, int y0, int x1, int y1, plot_style_t *style) { BView *view; @@ -311,7 +311,7 @@ bool nsbeos_plot_fill(int x0, int y0, int x1, int y1, colour c) return false; } - nsbeos_set_colour(c); + nsbeos_set_colour(style->fill_colour); BRect rect(x0, y0, x1 - 1, y1 - 1); view->FillRect(rect); @@ -319,7 +319,7 @@ bool nsbeos_plot_fill(int x0, int y0, int x1, int y1, colour c) //nsbeos_current_gc_unlock(); #if 0 /* GTK */ - nsbeos_set_colour(c); + nsbeos_set_colour(style->fill_colour); nsbeos_set_solid(); #ifdef CAIRO_VERSION if (option_render_cairo) { -- cgit v1.2.3