diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-07-14 06:42:21 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-07-14 06:42:21 +0000 |
| commit | 9edca8fe56eed686ef3d83c7caba23c82348efee (patch) | |
| tree | 62a48f3c1225af9017b0a38149c50d525473f04b /src/display/cairo-utils.cpp | |
| parent | Merge redundant *-fns.h into respective filter headers. (diff) | |
| download | inkscape-9edca8fe56eed686ef3d83c7caba23c82348efee.tar.gz inkscape-9edca8fe56eed686ef3d83c7caba23c82348efee.zip | |
Flood and merge filters
(bzr r9508.1.17)
Diffstat (limited to 'src/display/cairo-utils.cpp')
| -rw-r--r-- | src/display/cairo-utils.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/display/cairo-utils.cpp b/src/display/cairo-utils.cpp index 36202f42e..ce56c21f5 100644 --- a/src/display/cairo-utils.cpp +++ b/src/display/cairo-utils.cpp @@ -367,6 +367,14 @@ ink_cairo_surface_create_identical(cairo_surface_t *s) return ns; } +cairo_surface_t * +ink_cairo_surface_create_same_size(cairo_surface_t *s, cairo_content_t c) +{ + cairo_surface_t *ns = cairo_surface_create_similar(s, c, + ink_cairo_surface_get_width(s), ink_cairo_surface_get_height(s)); + return ns; +} + /** @brief Extract the alpha channel into a new surface. * Creates a surface with a content type of CAIRO_CONTENT_ALPHA that contains * the alpha values of pixels from @a s. */ |
