diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-10-28 17:56:37 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-10-29 17:31:22 +0200 |
commit | e48cb95493c1dc9532ae0d689238ff3bc317cc4c (patch) | |
tree | addbc385e27c3b4fc932d093e298566beb7c260f /src/cairo-path-fixed-private.h | |
parent | 166453c1abf2279b884a4d878729fa4fcfa550cb (diff) | |
download | cairo-e48cb95493c1dc9532ae0d689238ff3bc317cc4c.tar.gz |
path: Add stroke_is_rectilinear flag
Stroke and fill rectilinearity cannot be represented by a single flag
without missing the opportunity of considering some strokes
rectilinear.
Diffstat (limited to 'src/cairo-path-fixed-private.h')
-rw-r--r-- | src/cairo-path-fixed-private.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cairo-path-fixed-private.h b/src/cairo-path-fixed-private.h index c1ad0474c..21f30f370 100644 --- a/src/cairo-path-fixed-private.h +++ b/src/cairo-path-fixed-private.h @@ -84,7 +84,8 @@ struct _cairo_path_fixed { unsigned int needs_move_to : 1; unsigned int has_extents : 1; unsigned int has_curve_to : 1; - unsigned int is_rectilinear : 1; + unsigned int stroke_is_rectilinear : 1; + unsigned int fill_is_rectilinear : 1; unsigned int maybe_fill_region : 1; unsigned int is_empty_fill : 1; @@ -142,8 +143,8 @@ _cairo_path_fixed_fill_is_empty (const cairo_path_fixed_t *path) static inline cairo_bool_t _cairo_path_fixed_fill_is_rectilinear (const cairo_path_fixed_t *path) { - if (! path->is_rectilinear) - return 0; + if (! path->fill_is_rectilinear) + return FALSE; if (! path->has_current_point || path->needs_move_to) return TRUE; @@ -156,7 +157,7 @@ _cairo_path_fixed_fill_is_rectilinear (const cairo_path_fixed_t *path) static inline cairo_bool_t _cairo_path_fixed_stroke_is_rectilinear (const cairo_path_fixed_t *path) { - return path->is_rectilinear; + return path->stroke_is_rectilinear; } static inline cairo_bool_t |