diff options
author | James Bursa <james@netsurf-browser.org> | 2007-12-11 02:45:38 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2007-12-11 02:45:38 +0000 |
commit | b650b2379fc1233535ccff17b67b30b2670a4e0d (patch) | |
tree | 2502785b422f92f8a0535f8b24ed00642a5b26e3 /desktop/knockout.c | |
parent | 87a4dc07fd1a45968ebd4f695ef5293a31800f40 (diff) | |
download | netsurf-b650b2379fc1233535ccff17b67b30b2670a4e0d.tar.gz netsurf-b650b2379fc1233535ccff17b67b30b2670a4e0d.tar.bz2 |
Implement path plotter (for SVGs within a page).
svn path=/trunk/netsurf/; revision=3663
Diffstat (limited to 'desktop/knockout.c')
-rw-r--r-- | desktop/knockout.c | 10 |
1 files changed, 4 insertions, 6 deletions
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 <assert.h> #include <string.h> #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); } |