summaryrefslogtreecommitdiff
path: root/src/cairo-pattern.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2008-06-19 19:18:57 -0400
committerBehdad Esfahbod <behdad@behdad.org>2008-06-19 19:18:57 -0400
commit333a49d01d431a808c754cfa900e83a733010083 (patch)
tree79e17570fd0aae3e5f07fae6fb25ee4b679cfdac /src/cairo-pattern.c
parent4eae72317f117941617b426daa682fa4f1bf3d25 (diff)
[cairo-pattern] Don't call _cairo_stock_color() directly
Diffstat (limited to 'src/cairo-pattern.c')
-rw-r--r--src/cairo-pattern.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index 845a798c..67e51801 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -377,8 +377,7 @@ _cairo_pattern_create_in_error (cairo_status_t status)
CAIRO_MUTEX_INITIALIZE ();
- pattern = _cairo_pattern_create_solid (_cairo_stock_color (CAIRO_STOCK_BLACK),
- CAIRO_CONTENT_COLOR);
+ pattern = _cairo_pattern_create_solid (CAIRO_COLOR_BLACK, CAIRO_CONTENT_COLOR);
if (pattern->status == CAIRO_STATUS_SUCCESS)
status = _cairo_pattern_set_error (pattern, status);
@@ -1852,11 +1851,7 @@ _cairo_pattern_acquire_surface (cairo_pattern_t *pattern,
}
else
{
- const cairo_color_t *color;
-
- color = _cairo_stock_color (CAIRO_STOCK_TRANSPARENT);
- _cairo_pattern_init_solid (&solid, color,
- CAIRO_CONTENT_ALPHA);
+ _cairo_pattern_init_solid (&solid, CAIRO_COLOR_TRANSPARENT, CAIRO_CONTENT_ALPHA);
}
status = _cairo_pattern_acquire_surface_for_solid (&solid, dst,