[cairo] Optimize horizontal/vertical gradients

Keith Packard keithp at keithp.com
Mon Feb 14 04:14:27 PST 2005


Around 23 o'clock on Feb 13, Owen Taylor wrote:

+	} else if (pattern->u.linear.point0.x == pattern->u.linear.point1.x) {
+	  height = 1;

Are you sure this one is right?

(and yes, we should probably have some general 'near' function that tests the 
equivalence of two doubles too).

-keith


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050214/dddcee89/attachment.pgp


More information about the cairo mailing list