From 9edca8fe56eed686ef3d83c7caba23c82348efee Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Wed, 14 Jul 2010 08:42:21 +0200 Subject: Flood and merge filters (bzr r9508.1.17) --- src/display/cairo-utils.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/display/cairo-utils.cpp') 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. */ -- cgit v1.2.3