src/cairo-path-stroke-traps.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/cairo-path-stroke-traps.c b/src/cairo-path-stroke-traps.c index 520a3e5..98ff08a 100644 --- a/src/cairo-path-stroke-traps.c +++ b/src/cairo-path-stroke-traps.c @@ -299,8 +299,10 @@ join (struct stroker *stroker, _cairo_traps_tessellate_triangle_with_edges (stroker->traps, tri, edges); } else { - cairo_point_t t[] = { in->point, *inpt, *outpt }; - cairo_point_t e[] = { in->cw, in->ccw, out->cw, out->ccw }; + cairo_point_t t[3]; + cairo_point_t e[4]; + t[0] = in->point; t[1] = *inpt; t[2] = *outpt; + e[0] = in->cw; e[1] = in->ccw; e[2] = out->cw; e[3] = out->ccw; _cairo_traps_tessellate_triangle_with_edges (stroker->traps, t, e); } break; @@ -461,10 +463,12 @@ join (struct stroker *stroker, } case CAIRO_LINE_JOIN_BEVEL: { - cairo_point_t t[] = { in->point, *inpt, *outpt }; - cairo_point_t e[] = { in->cw, in->ccw, out->cw, out->ccw }; - _cairo_traps_tessellate_triangle_with_edges (stroker->traps, t, e); - break; + cairo_point_t t[3]; + cairo_point_t e[4]; + t[0] = in->point; t[1] = *inpt; t[2] = *outpt; + e[0] = in->cw; e[1] = in->ccw; e[2] = out->cw; e[3] = out->ccw; + _cairo_traps_tessellate_triangle_with_edges (stroker->traps, t, e); + break; } } }