diff options
author | Carl Worth <cworth@cworth.org> | 2004-12-23 13:49:56 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2004-12-23 13:49:56 +0000 |
commit | 7a5a3cb208b079dfe453ad532a8939bed394cff9 (patch) | |
tree | 9c81edf02027295d46ac18c2578b763e99859126 /src/cairo-spline.c | |
parent | f76d898cf1f14305e1cc984d0f2f40c831aa9014 (diff) | |
download | cairo-7a5a3cb208b079dfe453ad532a8939bed394cff9.tar.gz |
Remove unused CAIRO_TRAPS_GROWTH_INC.
Resize arrays by doubling rather than by linear increments.
Add new bug exposed centi_unfinished.svg.
Diffstat (limited to 'src/cairo-spline.c')
-rw-r--r-- | src/cairo-spline.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cairo-spline.c b/src/cairo-spline.c index bed351ef4..ff290d9dd 100644 --- a/src/cairo-spline.c +++ b/src/cairo-spline.c @@ -54,8 +54,6 @@ _cairo_spline_error_squared (cairo_spline_t *spline); static cairo_status_t _cairo_spline_decompose_into (cairo_spline_t *spline, double tolerance_squared, cairo_spline_t *result); -#define CAIRO_SPLINE_GROWTH_INC 100 - cairo_int_status_t _cairo_spline_init (cairo_spline_t *spline, cairo_point_t *a, cairo_point_t *b, @@ -136,7 +134,8 @@ _cairo_spline_add_point (cairo_spline_t *spline, cairo_point_t *point) } if (spline->num_points >= spline->points_size) { - status = _cairo_spline_grow_by (spline, CAIRO_SPLINE_GROWTH_INC); + int additional = spline->points_size ? spline->points_size : 32; + status = _cairo_spline_grow_by (spline, additional); if (status) return status; } |