From 6918fb2e4e0756b51b475aa455358f1f496441db Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 19 Jun 2018 19:43:12 +0200 Subject: [PATCH] rendernodepaintable: Fix rendering position When the given size had an offset, we were moving that offset in the wrong direction. --- gtk/gtkrendernodepaintable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkrendernodepaintable.c b/gtk/gtkrendernodepaintable.c index 0ca586d820..2d7248e2f4 100644 --- a/gtk/gtkrendernodepaintable.c +++ b/gtk/gtkrendernodepaintable.c @@ -61,11 +61,11 @@ gtk_render_node_paintable_paintable_snapshot (GdkPaintable *paintable, } gtk_snapshot_push_clip (snapshot, &self->bounds); - gtk_snapshot_offset (snapshot, self->bounds.origin.x, self->bounds.origin.y); + gtk_snapshot_offset (snapshot, -self->bounds.origin.x, -self->bounds.origin.y); gtk_snapshot_append_node (snapshot, self->node); - gtk_snapshot_offset (snapshot, -self->bounds.origin.x, -self->bounds.origin.y); + gtk_snapshot_offset (snapshot, self->bounds.origin.x, self->bounds.origin.y); gtk_snapshot_pop (snapshot); if (needs_transform) -- 2.30.2