From: Benjamin Otte Date: Tue, 19 Jun 2018 17:43:12 +0000 (+0200) Subject: rendernodepaintable: Fix rendering position X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~60 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6918fb2e4e0756b51b475aa455358f1f496441db;p=gtk4.git rendernodepaintable: Fix rendering position When the given size had an offset, we were moving that offset in the wrong direction. --- 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)