13
0

tweak to help with uncoalesced renders

This commit is contained in:
Ben Loftis 2015-02-03 17:35:37 -06:00
parent 9fab39358a
commit b4a0136155

View File

@ -795,6 +795,7 @@ GtkCanvas::on_expose_event (GdkEventExpose* ev)
gdk_region_get_rectangles (ev->region, &rects, &nrects);
for (gint n = 0; n < nrects; ++n) {
draw_context->set_identity_matrix(); //reset the cairo matrix, just in case someone left it transformed after drawing ( cough )
render (Rect (rects[n].x, rects[n].y, rects[n].x + rects[n].width, rects[n].y + rects[n].height), draw_context);
}
g_free (rects);