[cairo] Testing for opaque patterns

Jamey Sharp jamey at minilop.net
Fri Mar 4 11:29:33 PST 2005


> Index: src/cairo_glitz_surface.c
> ===================================================================
> RCS file: /cvs/cairo/cairo/src/cairo_glitz_surface.c,v
> retrieving revision 1.22
> diff -u -r1.22 cairo_glitz_surface.c
> --- src/cairo_glitz_surface.c	4 Mar 2005 02:55:28 -0000	1.22
> +++ src/cairo_glitz_surface.c	4 Mar 2005 17:39:33 -0000
> @@ -556,7 +556,7 @@
>  
>  	/* can't do alpha as gradient color interpolation must be done to
>  	   unpremultiplied colors. */
> -	if (pattern->alpha != 1.0)
> +	if (_cairo_pattern_is_opaque (pattern))
>  	    break;
>  
>  	/* glitz doesn't support inner and outer circle with different

Haven't you changed the sense of this test?

--Jamey



More information about the cairo mailing list