summaryrefslogtreecommitdiff
path: root/beos
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 /beos
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 'beos')
-rw-r--r--beos/beos_plotters.cpp8
1 files changed, 4 insertions, 4 deletions
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) {