diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-07-18 11:19:35 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-07-31 16:46:36 +0200 |
commit | 1f2dc2e06a2c2daabeefbea4c32cdf55bdf6b338 (patch) | |
tree | 41c0f2abc1200b730b5d34f332a8d203b53f7e1c /src/cairo-gstate.c | |
parent | b39d3d4b53951f951a3af188dd55acf2e0fa8eda (diff) |
pattern: Do not provide type field in cairo_pattern_union_t
The type field is accessible through the base.type field. This makes
it possible to change the layout of cairo_pattern_t and move the type
field without breaking cairo_pattern_union_t.
Diffstat (limited to 'src/cairo-gstate.c')
-rw-r--r-- | src/cairo-gstate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c index fd5c7b33..11a7b517 100644 --- a/src/cairo-gstate.c +++ b/src/cairo-gstate.c @@ -1062,7 +1062,7 @@ _cairo_gstate_mask (cairo_gstate_t *gstate, _cairo_gstate_copy_transformed_mask (gstate, &mask_pattern.base, mask); if (source->type == CAIRO_PATTERN_TYPE_SOLID && - mask_pattern.type == CAIRO_PATTERN_TYPE_SOLID && + mask_pattern.base.type == CAIRO_PATTERN_TYPE_SOLID && _cairo_operator_bounded_by_source (op)) { const cairo_solid_pattern_t *solid = (cairo_solid_pattern_t *) source; |