diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-03-21 14:56:34 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-03-21 14:56:34 -0400 |
commit | 39ae64ff0391c40077b63d214727ca0c25e03e37 (patch) | |
tree | 925756b04d29d65bc8c47332847f11c9edad43ca /src/cairo-path.c | |
parent | bd275c19782700f2cfc6905f348e4d4b3f15d311 (diff) | |
download | cairo-39ae64ff0391c40077b63d214727ca0c25e03e37.tar.gz |
[cairo-path] Don't access gstate members directly
Diffstat (limited to 'src/cairo-path.c')
-rw-r--r-- | src/cairo-path.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cairo-path.c b/src/cairo-path.c index 7c2374c2a..d79454c08 100644 --- a/src/cairo-path.c +++ b/src/cairo-path.c @@ -36,7 +36,6 @@ #include "cairo-path-private.h" #include "cairo-path-fixed-private.h" -#include "cairo-gstate-private.h" const cairo_path_t _cairo_path_nil = { CAIRO_STATUS_NO_MEMORY, NULL, 0 }; @@ -275,7 +274,8 @@ _cpp_curve_to_flatten (void *closure, if (status == CAIRO_INT_STATUS_DEGENERATE) return CAIRO_STATUS_SUCCESS; - status = _cairo_spline_decompose (&spline, cpp->gstate->tolerance); + status = _cairo_spline_decompose (&spline, + _cairo_gstate_get_tolerance (cpp->gstate)); if (status) goto out; @@ -360,7 +360,8 @@ _cairo_path_create_internal (cairo_path_fixed_t *path_fixed, return (cairo_path_t*) &_cairo_path_nil; path->num_data = _cairo_path_count (path, path_fixed, - gstate->tolerance, flatten); + _cairo_gstate_get_tolerance (gstate), + flatten); path->data = malloc (path->num_data * sizeof (cairo_path_data_t)); if (path->data == NULL) { |