diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-09 12:11:25 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-09 12:11:25 +0000 |
commit | 14720cd0dbc325a2140fbd5b2a7ce4b257ae5f5e (patch) | |
tree | 0ba7ecba64883e61bc851ec1fe009d11a1f7bcce | |
parent | a942938e90a219a0b88153f9fa96c606ce644ef1 (diff) | |
download | cairo-14720cd0dbc325a2140fbd5b2a7ce4b257ae5f5e.tar.gz |
gstate: Use the polygon intermediate for geometry queries
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/cairo-gstate.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c index c90f2f634..6319471ac 100644 --- a/src/cairo-gstate.c +++ b/src/cairo-gstate.c @@ -1235,12 +1235,12 @@ _cairo_gstate_in_stroke (cairo_gstate_t *gstate, _cairo_traps_init (&traps); _cairo_traps_limit (&traps, &limit, 1); - status = _cairo_path_fixed_stroke_to_traps (path, - &gstate->stroke_style, - &gstate->ctm, - &gstate->ctm_inverse, - gstate->tolerance, - &traps); + status = _cairo_path_fixed_stroke_polygon_to_traps (path, + &gstate->stroke_style, + &gstate->ctm, + &gstate->ctm_inverse, + gstate->tolerance, + &traps); if (unlikely (status)) goto BAIL; @@ -1465,12 +1465,12 @@ _cairo_gstate_stroke_extents (cairo_gstate_t *gstate, cairo_traps_t traps; _cairo_traps_init (&traps); - status = _cairo_path_fixed_stroke_to_traps (path, - &gstate->stroke_style, - &gstate->ctm, - &gstate->ctm_inverse, - gstate->tolerance, - &traps); + status = _cairo_path_fixed_stroke_polygon_to_traps (path, + &gstate->stroke_style, + &gstate->ctm, + &gstate->ctm_inverse, + gstate->tolerance, + &traps); empty = traps.num_traps == 0; if (! empty) _cairo_traps_extents (&traps, &extents); |