diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-07 22:57:44 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-07 22:57:44 +0000 |
commit | 33351d5c3dd912534c54e64ccfc7adc4c6f6ecae (patch) | |
tree | 30477a015a574e5121f9035fa455f1b77640a1cc /src/sna/sna_composite.c | |
parent | e4872225ace7e3b129292f5822aa75b84c52beff (diff) |
sna/glyphs: Bypass masks for single glyphs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_composite.c')
-rw-r--r-- | src/sna/sna_composite.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sna/sna_composite.c b/src/sna/sna_composite.c index a6f867f5..532dd805 100644 --- a/src/sna/sna_composite.c +++ b/src/sna/sna_composite.c @@ -405,8 +405,12 @@ sna_composite(CARD8 op, dst_x, dst_y, dst->pDrawable->x, dst->pDrawable->y, width, height)); - if (mask && sna_composite_mask_is_opaque(mask)) + if (mask && sna_composite_mask_is_opaque(mask)) { + DBG(("%s: removing opaque %smask\n", + __FUNCTION__, + mask->componentAlpha && PICT_FORMAT_RGB(mask->format) ? "CA " : "")); mask = NULL; + } if (!sna_compute_composite_region(®ion, src, mask, dst, |