summaryrefslogtreecommitdiff
path: root/src/cairo-path-fixed.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2010-10-22 23:03:51 +0200
committerAndrea Canciani <ranma42@gmail.com>2010-10-29 17:31:23 +0200
commit958c56e2b4f5447cc5a1cc137a8d287aebabe5dc (patch)
treed47fcf56bbfb152b2a3cdbe7db2d963ec546b908 /src/cairo-path-fixed.c
parent0655198301ec60b387b581a10b991ee442743374 (diff)
path: Tighten curve_to extents
The additional time spent in the computation of tight extents for the curve_to operation doesn't seem to be significant, but it makes the extents computations faster and the approximations more accurate.
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r--src/cairo-path-fixed.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index 636a88931..fd7bdcda1 100644
--- a/src/cairo-path-fixed.c
+++ b/src/cairo-path-fixed.c
@@ -609,10 +609,8 @@ _cairo_path_fixed_curve_to (cairo_path_fixed_t *path,
point[1].x = x1; point[1].y = y1;
point[2].x = x2; point[2].y = y2;
- /* coarse bounds */
- _cairo_box_add_point (&path->extents, &point[0]);
- _cairo_box_add_point (&path->extents, &point[1]);
- _cairo_box_add_point (&path->extents, &point[2]);
+ _cairo_box_add_curve_to (&path->extents, &path->current_point,
+ &point[0], &point[1], &point[2]);
path->current_point = point[2];
path->has_curve_to = TRUE;