xlib: Set has_component_alpha = FALSE for gradient Pictures

Whilst creating the xlib surface wrapper for gradient Pictures, the
corresponding attributes require ComponentAlpha disabled.
This commit is contained in:
Chris Wilson 2009-10-27 20:27:09 +00:00
parent 1a80cd2aa0
commit f571356d34

View file

@ -2058,6 +2058,7 @@ _cairo_xlib_surface_acquire_pattern_surface (cairo_xlib_surface_t *dst,
attributes->filter = CAIRO_FILTER_NEAREST;
attributes->x_offset = 0;
attributes->y_offset = 0;
attributes->has_component_alpha = FALSE;
*surface_out = surface;
return CAIRO_STATUS_SUCCESS;