[cairo] fixing cairo_(fill,stroke)_extents [patch]

Robert O'Callahan rocallahan at novell.com
Mon Sep 25 20:19:35 PDT 2006


On Mon, 2006-09-25 at 16:34 -0700, Carl Worth wrote:
> On Thu, 14 Sep 2006 15:19:37 +1200, Robert O'Callahan wrote:
> > They also don't handle the "no path" case well. cairo_stroke_extents
> > returns something odd when it should just return something empty (e.g.
> > x1,y1=x2,y2=0,0.) cairo_fill_extents also returns something odd. I'm
> > actually not sure what it *should* return, but for now I'm having it
> > return the surface extents.
> 
> Why shouldn't cairo_fill_extents also just return an all 0 extent
> structure? A fill of an empty path is definitely a no-op.

I was confused about that. I'll fix it up.

I'll get vlad to push the patches since I don't have access.

Rob



More information about the cairo mailing list