mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 02:28:02 +02:00
[cairo-xlib] Delay using fallback if xrender is not available
So we can use XCopyArea when Render is not available. Based on patch by Ginn Chen.
This commit is contained in:
parent
30a16df29b
commit
f90b155b5a
1 changed files with 3 additions and 3 deletions
|
|
@ -1407,6 +1407,9 @@ _recategorize_composite_operation (cairo_xlib_surface_t *dst,
|
|||
if (!CAIRO_SURFACE_RENDER_HAS_COMPOSITE (src))
|
||||
return DO_UNSUPPORTED;
|
||||
|
||||
if (!CAIRO_SURFACE_RENDER_HAS_COMPOSITE (dst))
|
||||
return DO_UNSUPPORTED;
|
||||
|
||||
return DO_RENDER;
|
||||
}
|
||||
|
||||
|
|
@ -1475,9 +1478,6 @@ _cairo_xlib_surface_composite (cairo_operator_t op,
|
|||
|
||||
_cairo_xlib_display_notify (dst->screen_info->display);
|
||||
|
||||
if (!CAIRO_SURFACE_RENDER_HAS_COMPOSITE (dst))
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
operation = _categorize_composite_operation (dst, op, src_pattern,
|
||||
mask_pattern != NULL);
|
||||
if (operation == DO_UNSUPPORTED)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue