mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-27 00:10:43 +02:00
Add a comment about the point choice when capping degenerate paths
This commit is contained in:
parent
a1a4d6966e
commit
9f3fb4f753
1 changed files with 3 additions and 0 deletions
|
|
@ -474,6 +474,9 @@ _cairo_stroker_add_caps (cairo_stroker_t *stroker)
|
|||
/* pick an arbitrary slope to use */
|
||||
cairo_slope_t slope = {1, 0};
|
||||
cairo_stroke_face_t face;
|
||||
|
||||
/* arbitrarily choose first_point
|
||||
* first_point and current_point should be the same */
|
||||
_compute_face (&stroker->first_point, &slope, stroker, &face);
|
||||
|
||||
status = _cairo_stroker_add_leading_cap (stroker, &face);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue