summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-03 14:29:20 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-03 14:29:20 +0100
commita76c36f2edd16d8e2b8f49e6409134aceab38a42 (patch)
tree3ed588b53ec26ca15d10fc8b7d190d48103f7b61 /src
parentdf067be863bf714f22db0392ab29926edfa8e917 (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.
Diffstat (limited to 'src')
-rw-r--r--src/cairo-xlib-surface.c2
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);