[cairo-bugs] [Bug 5686] RFE - named savepoints

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jan 22 10:31:07 PST 2006


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=5686          
     




------- Additional Comments From robert.staudinger at gmail.com  2006-01-23 05:26 -------
/* widget initialisation code, realize() or somesuch */

/* set up cairo */
...
self->savepoint = cairo_save_named (self->cr);


/* drawing code, e.g. expose () */

for (r = 0; r < rows; r++) {
  for (c = 0; c < cols; c++) {
    x = c * self->tile_width;
    y = r * self->tile_height;
    /* no longer needed cairo_save (self->cr); */
    cairo_translate (self->cr, x, y);
    rsvg_cairo_render (self->cr, self->svgh);
    cairo_restore_named (self->cr, self->savepoint);
  }
}
          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list