mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 07:20:16 +01:00
compositor: Reduce glyph "overlap" if the inked pixels are opaque
We can ignore the issue of overdraw if when we paint the glyphs, the result is opaque. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
66500ef29f
commit
fbf528f46d
1 changed files with 7 additions and 0 deletions
|
|
@ -444,6 +444,13 @@ _cairo_composite_rectangles_init_for_glyphs (cairo_composite_rectangles_t *exten
|
|||
if (unlikely (status))
|
||||
return status;
|
||||
|
||||
if (overlap && *overlap &&
|
||||
scaled_font->options.antialias == CAIRO_ANTIALIAS_NONE &&
|
||||
_cairo_pattern_is_opaque_solid (&extents->source_pattern.base))
|
||||
{
|
||||
*overlap = FALSE;
|
||||
}
|
||||
|
||||
return _cairo_composite_rectangles_intersect (extents, clip);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue