summaryrefslogtreecommitdiff
path: root/src/cairo-path-fill.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2010-10-16 23:57:06 +0200
committerAndrea Canciani <ranma42@gmail.com>2010-10-29 17:31:21 +0200
commite9c1fc31887c5bfbb7d086f923a7628b7cfa739c (patch)
treeeb09b160574905223235f4efb45e0e165689946a /src/cairo-path-fill.c
parent14cc9846b302a990e65d7572e7f095a8873a213d (diff)
path: Do not access flags directly
Use inline accessors to hide the flags in the code. This ensures that flags that need additional computations (example: is_rectilinear for the fill case) are always used correctly.
Diffstat (limited to 'src/cairo-path-fill.c')
-rw-r--r--src/cairo-path-fill.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-path-fill.c b/src/cairo-path-fill.c
index 24aaa396..358c8b9e 100644
--- a/src/cairo-path-fill.c
+++ b/src/cairo-path-fill.c
@@ -139,7 +139,7 @@ _cairo_path_fixed_fill_to_traps (const cairo_path_fixed_t *path,
cairo_polygon_t polygon;
cairo_status_t status;
- if (path->is_empty_fill)
+ if (_cairo_path_fixed_fill_is_empty (path))
return CAIRO_STATUS_SUCCESS;
_cairo_polygon_init (&polygon);
@@ -152,7 +152,7 @@ _cairo_path_fixed_fill_to_traps (const cairo_path_fixed_t *path,
if (unlikely (status || polygon.num_edges == 0))
goto CLEANUP;
- if (path->is_rectilinear) {
+ if (_cairo_path_fixed_fill_is_rectilinear (path)) {
status = _cairo_bentley_ottmann_tessellate_rectilinear_polygon (traps,
&polygon,
fill_rule);
@@ -242,8 +242,8 @@ _cairo_path_fixed_fill_rectilinear_to_region (const cairo_path_fixed_t *path,
cairo_box_t box;
cairo_region_t *region = NULL;
- assert (path->maybe_fill_region);
- assert (! path->is_empty_fill);
+ assert (_cairo_path_fixed_fill_maybe_region (path));
+ assert (! _cairo_path_fixed_fill_is_empty (path));
if (_cairo_path_fixed_is_box (path, &box)) {
rectangle_stack[0].x = _cairo_fixed_integer_part (box.p1.x);