mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-23 05:50:23 +01:00
gstate: Use the polygon intermediate for geometry queries
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
a942938e90
commit
14720cd0db
1 changed files with 12 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue