[cairo] cairo_clip()-related question

Chris Wilson chris at chris-wilson.co.uk
Wed Nov 26 03:02:31 PST 2008


On Wed, 2008-11-26 at 15:21 +0500, Alexei Babich wrote:
> > You seem to be abusing the
> > cairo_save/restore calls
> Do you mean the stack overflow with cairo_save() calls?

No, what he meant was that cairo_save() doesn't save the current path -
so when you uncommented the clipping you obliterate the path used for
stroking. By restructuring your code in the manner suggested (where the
context is recreated for every expose event and only lasts for a single
sequence of drawing operations), hopefully the logic becomes clearer and
more adaptable.
-- 
Chris



More information about the cairo mailing list