diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-03 14:29:20 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-03 14:29:20 +0100 |
commit | a76c36f2edd16d8e2b8f49e6409134aceab38a42 (patch) | |
tree | 3ed588b53ec26ca15d10fc8b7d190d48103f7b61 | |
parent | df067be863bf714f22db0392ab29926edfa8e917 (diff) |
[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.
-rw-r--r-- | src/cairo-xlib-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |