From b650b2379fc1233535ccff17b67b30b2670a4e0d Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 11 Dec 2007 02:45:38 +0000 Subject: Implement path plotter (for SVGs within a page). svn path=/trunk/netsurf/; revision=3663 --- desktop/knockout.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'desktop') diff --git a/desktop/knockout.c b/desktop/knockout.c index a0bf95854..842c4cb85 100644 --- a/desktop/knockout.c +++ b/desktop/knockout.c @@ -21,7 +21,6 @@ */ #define NDEBUG - #include #include #include "desktop/knockout.h" @@ -241,7 +240,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(!memcmp(plotter, &knockout_plotters, sizeof(struct plotter_table))); + assert(plotter->clg == knockout_plotters.clg); return true; } @@ -664,9 +663,8 @@ bool knockout_plot_polygon(int *p, unsigned int n, colour fill) /* ensure we have sufficient room even when flushed */ if (n * 2 >= KNOCKOUT_POLYGONS) { - knockout_plot_end(); - success = plot.polygon(p, n, fill); knockout_plot_flush(); + success = real_plot.polygon(p, n, fill); return success; } @@ -691,8 +689,8 @@ bool knockout_plot_polygon(int *p, unsigned int n, colour fill) bool knockout_plot_path(float *p, unsigned int n, colour fill, float width, colour c, float *transform) { - LOG(("knockout_plot_path not implemented")); - return false; + knockout_plot_flush(); + return real_plot.path(p, n, fill, width, c, transform); } -- cgit v1.2.3