diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-07-01 13:53:06 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-07-01 13:53:06 +0000 |
commit | 1165edf662baa3286ff76df54f2db6819340d0a3 (patch) | |
tree | ef3c9d96bfe66869e7c06fa06e1388fd7c3dd8ee /desktop/knockout.c | |
parent | a3e205bbd9cff0a189b3a5a03c676ace9c5ee8dd (diff) | |
download | netsurf-1165edf662baa3286ff76df54f2db6819340d0a3.tar.gz netsurf-1165edf662baa3286ff76df54f2db6819340d0a3.tar.bz2 |
remove redundant clg call
svn path=/trunk/netsurf/; revision=8240
Diffstat (limited to 'desktop/knockout.c')
-rw-r--r-- | desktop/knockout.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/desktop/knockout.c b/desktop/knockout.c index 4df32bb50..1fbb67968 100644 --- a/desktop/knockout.c +++ b/desktop/knockout.c @@ -86,7 +86,6 @@ static bool knockout_plot_fill_recursive(struct knockout_box *box, colour c); static bool knockout_plot_bitmap_recursive(struct knockout_box *box, struct knockout_entry *entry); -static bool knockout_plot_clg(colour c); static bool knockout_plot_rectangle(int x0, int y0, int width, int height, int line_width, colour c, bool dotted, bool dashed); static bool knockout_plot_line(int x0, int y0, int x1, int y1, int width, @@ -111,7 +110,6 @@ static bool knockout_plot_path(const float *p, unsigned int n, colour fill, const struct plotter_table knockout_plotters = { - .clg = knockout_plot_clg, .rectangle = knockout_plot_rectangle, .line = knockout_plot_line, .polygon = knockout_plot_polygon, @@ -130,7 +128,6 @@ const struct plotter_table knockout_plotters = { typedef enum { - KNOCKOUT_PLOT_CLG, /* translated to _FILL */ KNOCKOUT_PLOT_RECTANGLE, KNOCKOUT_PLOT_LINE, KNOCKOUT_PLOT_POLYGON, @@ -163,9 +160,6 @@ struct knockout_entry { struct knockout_box *box; /* relating series of knockout clips */ union { struct { - colour c; - } clg; - struct { int x0; int y0; int width; @@ -270,7 +264,7 @@ bool knockout_plot_start(struct plotter_table *plotter) /* check if we're recursing */ if (nested_depth++ > 0) { /* we should already have the knockout renderer as default */ - assert(plotter->clg == knockout_plotters.clg); + assert(plotter->rectangle == knockout_plotters.rectangle); return true; } @@ -323,10 +317,6 @@ bool knockout_plot_flush(void) for (i = 0; i < knockout_entry_cur; i++) { switch (knockout_entries[i].type) { - case KNOCKOUT_PLOT_CLG: - success &= plot.clg( - knockout_entries[i].data.clg.c); - break; case KNOCKOUT_PLOT_RECTANGLE: success &= plot.rectangle( knockout_entries[i].data.rectangle.x0, @@ -634,10 +624,6 @@ bool knockout_plot_bitmap_recursive(struct knockout_box *box, return success; } -bool knockout_plot_clg(colour c) -{ - return knockout_plot_fill(clip_x0_cur, clip_y0_cur, clip_x1_cur, clip_y1_cur, c); -} bool knockout_plot_rectangle(int x0, int y0, int width, int height, |