gtk: In path plotter, maintain cairo transformation offset

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2020-10-03 21:42:46 +01:00
parent 58fee8749f
commit 32d52bf055
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74

View File

@ -432,8 +432,8 @@ nsgtk_plot_path(const struct redraw_context *ctx,
n_ctm.yx = transform[1];
n_ctm.xy = transform[2];
n_ctm.yy = transform[3];
n_ctm.x0 = transform[4];
n_ctm.y0 = transform[5];
n_ctm.x0 = transform[4] + old_ctm.x0;
n_ctm.y0 = transform[5] + old_ctm.y0;
cairo_set_matrix(current_cr, &n_ctm);