diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-02-09 19:18:41 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-02-09 19:18:41 +0100 |
commit | 51bcf46f9fd8c1f44d8412f2ac3c2b256230dd21 (patch) | |
tree | 89c2459b32db5349e1eec35bed4d50ca4fca437c | |
parent | b1cb0e6dce0fdd5e46a04abba419c825c78a547c (diff) |
wipwip/cs10
-rw-r--r-- | src/cairo-pattern.c | 6 | ||||
-rw-r--r-- | src/cairoint.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c index df1f889ee..9ae458c02 100644 --- a/src/cairo-pattern.c +++ b/src/cairo-pattern.c @@ -81,7 +81,7 @@ static const cairo_solid_pattern_t _cairo_pattern_nil_null_pointer = { CAIRO_EXTEND_GRADIENT_DEFAULT }, /* extend */ }; -const cairo_solid_pattern_t _cairo_pattern_black = { +const cairo_solid_pattern_t _cairo_pattern_opaque = { { CAIRO_PATTERN_TYPE_SOLID, /* type */ CAIRO_REFERENCE_COUNT_INVALID, /* ref_count */ CAIRO_STATUS_SUCCESS, /* status */ @@ -89,8 +89,8 @@ const cairo_solid_pattern_t _cairo_pattern_black = { { 1., 0., 0., 1., 0., 0., }, /* matrix */ CAIRO_FILTER_DEFAULT, /* filter */ CAIRO_EXTEND_GRADIENT_DEFAULT}, /* extend */ - CAIRO_COMPONENTS_BLACK_INIT, /* components */ - CAIRO_COLOR_SPACE_DEVICE_GRAY /* color_space */ + CAIRO_COMPONENTS_OPAQUE_INIT /* components */ + NULL /* color_space */ }; const cairo_solid_pattern_t _cairo_pattern_clear = { diff --git a/src/cairoint.h b/src/cairoint.h index c2d0398ec..0de9cb8b7 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -888,7 +888,7 @@ extern const cairo_private cairo_surface_backend_t _cairo_image_surface_backend; #define CAIRO_FILTER_DEFAULT CAIRO_FILTER_GOOD extern const cairo_private cairo_solid_pattern_t _cairo_pattern_clear; -extern const cairo_private cairo_solid_pattern_t _cairo_pattern_black; +extern const cairo_private cairo_solid_pattern_t _cairo_pattern_opaque; extern const cairo_private cairo_solid_pattern_t _cairo_pattern_white; typedef struct _cairo_surface_attributes { |