gpu: Offset tiles properly

When drawing repeat nodes as tiles, this could result in wrong
renderings when the tiles were clipped wrong.
This commit is contained in:
Benjamin Otte 2024-01-23 05:04:04 +01:00
parent 3451c2e72c
commit dfc34b7295

View File

@ -3247,8 +3247,8 @@ gsk_gpu_node_processor_repeat_tile (GskGpuNodeProcessor *self,
rect,
&self->offset,
&GRAPHENE_RECT_INIT (
clipped_child_bounds.origin.x - x * child_bounds->size.width,
clipped_child_bounds.origin.y - y * child_bounds->size.height,
clipped_child_bounds.origin.x + x * child_bounds->size.width,
clipped_child_bounds.origin.y + y * child_bounds->size.height,
clipped_child_bounds.size.width,
clipped_child_bounds.size.height
));