forked from AuroraMiddleware/gtk
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:
parent
3caf8c86c9
commit
6918fb2e4e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user