summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-01-21 23:35:35 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-01-21 23:35:35 +0000
commit90326e6b0d35ac8ca81f40cc36a252a6ecd916d4 (patch)
tree920f0e3d82d464fa651fca63ef85eef48325b464 /src
parent2438d7075abca8f6bfc6f580598e38555ebc5d41 (diff)
downloadlibnsfb-90326e6b0d35ac8ca81f40cc36a252a6ecd916d4.tar.gz
libnsfb-90326e6b0d35ac8ca81f40cc36a252a6ecd916d4.tar.bz2
fix polylines
svn path=/trunk/libnsfb/; revision=9855
Diffstat (limited to 'src')
-rw-r--r--src/plot/generic.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plot/generic.c b/src/plot/generic.c
index 8dbc64b..a367d14 100644
--- a/src/plot/generic.c
+++ b/src/plot/generic.c
@@ -604,13 +604,16 @@ static bool quadratic(nsfb_t *nsfb, nsfb_bbox_t *curve, nsfb_point_t *ctrla, nsf
return true;
}
-static bool polylines(nsfb_t *nsfb, int pointc, nsfb_point_t *points, nsfb_plot_pen_t *pen)
+
+static bool polylines(nsfb_t *nsfb, int pointc, const nsfb_point_t *points, nsfb_plot_pen_t *pen)
{
int point_loop;
+ nsfb_bbox_t line;
if (pen->stroke_type != NFSB_PLOT_OPTYPE_NONE) {
for (point_loop = 0; point_loop < (pointc - 1); point_loop++) {
- nsfb->plotter_fns->line(nsfb, 1, (nsfb_bbox_t *)&points[point_loop], pen);
+ line = *(nsfb_bbox_t *)&points[point_loop];
+ nsfb->plotter_fns->line(nsfb, 1, &line, pen);
}
}
return true;