diff options
author | Carl Worth <cworth@cworth.org> | 2009-07-27 15:45:55 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-07-27 15:45:55 -0700 |
commit | 45919a4f0c94a247b1c6941dbc4a57f6c9399396 (patch) | |
tree | 3116cc082cad0c28ea0ffe96bdbb09a1a7ca1540 /src/cairo-path-fixed.c | |
parent | 5bed405b278a6b934369873f55117d497f69bc3a (diff) |
Revert "[path] Convert straight curve-to to line-to"
This reverts commit c72ca2f2296b5fbc5859059b98221e5ffe087dae.
This commit was broken as verified by the curve-to-as-line-to test
case.
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r-- | src/cairo-path-fixed.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c index 3befe42c8..9819353b3 100644 --- a/src/cairo-path-fixed.c +++ b/src/cairo-path-fixed.c @@ -488,7 +488,6 @@ _cairo_path_fixed_curve_to (cairo_path_fixed_t *path, { cairo_status_t status; cairo_point_t point[3]; - cairo_slope_t slope, tangent; /* make sure subpaths are started properly */ if (! path->has_current_point) { @@ -503,17 +502,6 @@ _cairo_path_fixed_curve_to (cairo_path_fixed_t *path, point[0].x = x0; point[0].y = y0; point[1].x = x1; point[1].y = y1; point[2].x = x2; point[2].y = y2; - - _cairo_slope_init (&slope, &path->current_point, &point[2]); - _cairo_slope_init (&tangent, &path->current_point, &point[0]); - if (_cairo_slope_compare (&slope, &tangent) == 0) { - _cairo_slope_init (&tangent, &point[1], &point[2]); - if (_cairo_slope_compare (&slope, &tangent) == 0) { - /* just a straight line... */ - return _cairo_path_fixed_line_to (path, x2, y2); - } - } - status = _cairo_path_fixed_add (path, CAIRO_PATH_OP_CURVE_TO, point, 3); if (unlikely (status)) return status; |