diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-01-30 19:45:37 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-01-30 19:47:45 -0500 |
commit | 8609cd5686828f180c26ae3934f8edcaf25e4ac6 (patch) | |
tree | ceab4f8ba3221cb2b70573839128677107304abf | |
parent | cc5edbbbb2da26bc8f1c12315c5cf9ad98ef1005 (diff) | |
download | gtk+-fix-cairo-node-deserialization.tar.gz |
Try to fix cairo node serializationfix-cairo-node-deserialization
Place the saved png at the right offset.
This depends on
https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/118
to make the cairo recording surface produce a proper png.
-rw-r--r-- | gsk/gskrendernodeparser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/gskrendernodeparser.c b/gsk/gskrendernodeparser.c index c53597732d..58ed236f13 100644 --- a/gsk/gskrendernodeparser.c +++ b/gsk/gskrendernodeparser.c @@ -1394,7 +1394,7 @@ parse_cairo_node (GtkCssParser *parser) if (surface != NULL) { cairo_t *cr = gsk_cairo_node_get_draw_context (node); - cairo_set_source_surface (cr, surface, 0, 0); + cairo_set_source_surface (cr, surface, bounds.origin.x, bounds.origin.y); cairo_paint (cr); cairo_destroy (cr); } |