From a638764b6f52eaa40ff1458da22a85e34e2be851 Mon Sep 17 00:00:00 2001 From: Massimo Valentini Date: Sat, 13 Sep 2014 18:44:19 +0200 Subject: [PATCH] fix device-offset.xlib-render-0_0.rgb24 --- src/cairo-xlib-surface.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c index 029a542..bbd2d74 100644 --- a/src/cairo-xlib-surface.c +++ b/src/cairo-xlib-surface.c @@ -746,11 +746,14 @@ _get_image_surface (cairo_xlib_surface_t *surface, pixman_format = _pixman_format_for_xlib_surface (surface); if (pixman_format) { - return _cairo_image_surface_create_with_pixman_format (NULL, + cairo_surface_t *base; + base = _cairo_image_surface_create_with_pixman_format (NULL, pixman_format, extents->width, extents->height, 0); + base->serial += ! surface->base.is_clear; + return base; } } -- 1.9.3