~msoegtrop/inkscape/embroidery

« back to all changes in this revision

Viewing changes to src/display/sp-canvas.cpp

  • Committer: Michael Soegtrop
  • Date: 2017-06-05 13:13:40 UTC
  • mfrom: (14862.1.45 inkscape)
  • Revision ID: msoegtrop@yahoo.de-20170605131340-5zjk9ihhdm1hadzs
updated to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1159
1159
        allocation->width, allocation->height);
1160
1160
    if (canvas->_backing_store) {
1161
1161
        cairo_t *cr = cairo_create(new_backing_store);
1162
 
        cairo_set_source_surface(cr, canvas->_backing_store, 0, 0);
 
1162
        cairo_translate(cr, -canvas->_x0, -canvas->_y0);
1163
1163
        cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
 
1164
        cairo_set_source(cr, canvas->_background);
 
1165
        cairo_paint(cr);
 
1166
        cairo_set_source_surface(cr, canvas->_backing_store, canvas->_x0, canvas->_y0);
1164
1167
        cairo_paint(cr);
1165
1168
        cairo_destroy(cr);
1166
1169
        cairo_surface_destroy(canvas->_backing_store);