[cairo] questions concerning cairo/glitz

Keith Packard keithp at keithp.com
Sat Jul 30 22:42:58 PDT 2005


On Sun, 2005-07-31 at 00:05 -0500, Ryan O'Hara wrote:

> 
>   cairo_set_source_rgba( cr, 1, 0, 0, 1);
>   cairo_set_line_width(cr, 5);
>   cairo_rectangle(cr, 150, 200, 50, 50);
>   cairo_save(cr);
>   cairo_fill(cr);
>   cairo_restore(cr);
>   cairo_stroke(cr);
> 
> If i comment out the call to cairo_fill, the everything else seems to
> work fine. Any help would be greatly appreciated.

The current path is no longer part of the gstate, so save/restore
doesn't preserve it.  Check out cairo_fill_preserve

-keith

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050730/a6ce6fb8/attachment.pgp


More information about the cairo mailing list