summaryrefslogtreecommitdiff
path: root/src/cairo-rectangle.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-12-18 14:52:03 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-12-18 14:55:20 +0000
commit813cbf13ddbd3d4b708b3b362dd6c108966f44d5 (patch)
treedb9844d62b71295e5431e83da34c18304e67c1e3 /src/cairo-rectangle.c
parentdea40e61babe608315b6d365094cf518814b134e (diff)
downloadcairo-813cbf13ddbd3d4b708b3b362dd6c108966f44d5.tar.gz
[path] Separate the approx. bounds into 3 distinct functions
Based on feedback from Jeff Muizelaar, there is a case for a very quick and dirty extents approximation based solely on the curve control points (for example when computing the clip intersect rectangle of a path) and by moving the stroke extension into a core function we can clean up the interface for all users, and centralise the logic of approximating the stroke extents.
Diffstat (limited to 'src/cairo-rectangle.c')
-rw-r--r--src/cairo-rectangle.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/cairo-rectangle.c b/src/cairo-rectangle.c
index 31a530e89..b13962487 100644
--- a/src/cairo-rectangle.c
+++ b/src/cairo-rectangle.c
@@ -126,16 +126,6 @@ _cairo_rectangle_intersect (cairo_rectangle_int_t *dst,
}
}
-cairo_bool_t
-_cairo_rectangle_intersect_box (cairo_rectangle_int_t *dst,
- const cairo_box_t *src)
-{
- cairo_rectangle_int_t rect;
-
- _cairo_box_round_to_rectangle (src, &rect);
- return _cairo_rectangle_intersect (dst, &rect);
-}
-
#define P1x (line->p1.x)
#define P1y (line->p1.y)
#define P2x (line->p2.x)