[cairo] Re: Proposal: cairo_save_state/cairo_restore_state

Stuart Parmenter stuartp at gmail.com
Tue Jan 24 12:46:01 PST 2006


On 1/24/06, Robert Staudinger <robert.staudinger at gmail.com> wrote:
> Usage example:
>
> void draw_foo (cairo_t *cr) {
>
>     cairo_state_t cs;
>     cairo_save_state (cr, &cs);
>     /* drawing code goes here */
>     cairo_restore_state (cr, &cs);
> }
>

Why wouldn't you just use cairo_save() and cairo_restore() here?

stuart


More information about the cairo mailing list