diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2010-01-22 23:20:06 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2010-01-22 23:20:06 +0000 |
commit | f6c7cb873e7998ff0641131bba57c0f83e53b938 (patch) | |
tree | ab2d3fd958ab4057bc3541450dbb101d87607583 /src/plot/api.c | |
parent | ec0a1adadf3c64957c8f7d529c6bdbf3fa037dd8 (diff) | |
download | libnsfb-f6c7cb873e7998ff0641131bba57c0f83e53b938.tar.gz libnsfb-f6c7cb873e7998ff0641131bba57c0f83e53b938.tar.bz2 |
add basic (but working) path support
svn path=/trunk/libnsfb/; revision=9865
Diffstat (limited to 'src/plot/api.c')
-rw-r--r-- | src/plot/api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plot/api.c b/src/plot/api.c index 95644cc..f5c16f3 100644 --- a/src/plot/api.c +++ b/src/plot/api.c @@ -158,14 +158,14 @@ bool nsfb_plot_readrect(nsfb_t *nsfb, nsfb_bbox_t *rect, nsfb_colour_t *buffer) } -bool nsfb_plot_cubic_bezier(nsfb_t *nsfb, nsfb_bbox_t *curve, nsfb_point_t *ctrla, nsfb_point_t *ctrlb, nsfb_colour_t c) +bool nsfb_plot_cubic_bezier(nsfb_t *nsfb, nsfb_bbox_t *curve, nsfb_point_t *ctrla, nsfb_point_t *ctrlb, nsfb_plot_pen_t *pen) { - return nsfb->plotter_fns->cubic(nsfb, curve, ctrla, ctrlb, c); + return nsfb->plotter_fns->cubic(nsfb, curve, ctrla, ctrlb, pen); } -bool nsfb_plot_quadratic_bezier(nsfb_t *nsfb, nsfb_bbox_t *curve, nsfb_point_t *ctrla, nsfb_colour_t c) +bool nsfb_plot_quadratic_bezier(nsfb_t *nsfb, nsfb_bbox_t *curve, nsfb_point_t *ctrla, nsfb_plot_pen_t *pen) { - return nsfb->plotter_fns->quadratic(nsfb, curve, ctrla, c); + return nsfb->plotter_fns->quadratic(nsfb, curve, ctrla, pen); } bool nsfb_plot_path(nsfb_t *nsfb, int pathc, nsfb_plot_pathop_t *pathop, nsfb_plot_pen_t *pen) |