rendernodepaintable: Fix rendering position

When the given size had an offset, we were moving that offset in the
wrong direction.
This commit is contained in:
Benjamin Otte 2018-06-19 19:43:12 +02:00
parent 3caf8c86c9
commit 6918fb2e4e

View File

@ -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)