summaryrefslogtreecommitdiff
path: root/src/cairo-rectangle.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-24 17:22:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-03 15:07:18 +0000
commit5bc1b1f6aac108d9a3963352ad774bb4fcd69e28 (patch)
treebb5cded7a588e82b5481a0486f76c4c7bf7dca40 /src/cairo-rectangle.c
parent74941f822015cc50cd8477d0cf97f1a70dbff60b (diff)
downloadcairo-5bc1b1f6aac108d9a3963352ad774bb4fcd69e28.tar.gz
stroke: Make the incremental trapezoid stroker optionally available again
Whilst it cannot handle self-intersecting strokes (which includes the antialias region of neighbouring lines and joints), it is about 3x faster to use than the more robust algorithm. As some backends delegate the rendering, the quality may still be preserved and so they should be responsible for choosing the appropriate method for generation of the stroke geometry. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-rectangle.c')
-rw-r--r--src/cairo-rectangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-rectangle.c b/src/cairo-rectangle.c
index 47f2837c7..2d51d7b10 100644
--- a/src/cairo-rectangle.c
+++ b/src/cairo-rectangle.c
@@ -189,7 +189,7 @@ _cairo_rectangle_union (cairo_rectangle_int_t *dst,
*/
cairo_bool_t
-_cairo_box_intersects_line_segment (cairo_box_t *box, cairo_line_t *line)
+_cairo_box_intersects_line_segment (const cairo_box_t *box, cairo_line_t *line)
{
cairo_fixed_t t1=0, t2=0, t3=0, t4=0;
cairo_int64_t t1y, t2y, t3x, t4x;