From a76c36f2edd16d8e2b8f49e6409134aceab38a42 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 3 Sep 2009 14:29:20 +0100 Subject: [xlib] solid pictures should only be 1x1 Creating an widthxheight solid picture for using with RenderCompositeTrapezoids defeats the optimization with the xserver that checks for a solid alpha pattern. The checks it performs are for CONTENT_ALPHA, Repeat, 1x1 and value == 0xff. --- src/cairo-xlib-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c index 9d49d87b..a8507ffd 100644 --- a/src/cairo-xlib-surface.c +++ b/src/cairo-xlib-surface.c @@ -2517,7 +2517,7 @@ _create_trapezoid_mask (cairo_xlib_surface_t *dst, offset_traps[i].right.p2.y = _cairo_fixed_to_16_16(traps[i].right.p2.y) - 0x10000 * dst_y; } - solid_picture = _create_a8_picture (dst, &solid, width, height, TRUE); + solid_picture = _create_a8_picture (dst, &solid, 1, 1, TRUE); if (solid_picture == None) { XRenderFreePicture (dst->dpy, mask_picture); free (offset_traps); -- cgit v1.2.3