[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:
Behdad Esfahbod 2008-05-27 04:41:03 -04:00
parent 30a16df29b
commit f90b155b5a

View file

@ -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)