cairo_paint_with_alpha(cr, 0.0) is only a noop when bounded by mask

This commit is contained in:
Benjamin Otte 2010-05-13 10:27:37 +02:00
parent ee32dfb3de
commit 8aa50b5a78

View file

@ -2139,7 +2139,8 @@ cairo_paint_with_alpha (cairo_t *cr,
return;
}
if (CAIRO_ALPHA_IS_ZERO (alpha)) {
if (CAIRO_ALPHA_IS_ZERO (alpha) &&
_cairo_operator_bounded_by_mask (cr->gstate->op)) {
return;
}