From dfc34b72951a810c8fb3c0e9250fe3db3a19f6e4 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 23 Jan 2024 05:04:04 +0100 Subject: [PATCH] gpu: Offset tiles properly When drawing repeat nodes as tiles, this could result in wrong renderings when the tiles were clipped wrong. --- gsk/gpu/gskgpunodeprocessor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gsk/gpu/gskgpunodeprocessor.c b/gsk/gpu/gskgpunodeprocessor.c index b736e51d32..bdb10db2fd 100644 --- a/gsk/gpu/gskgpunodeprocessor.c +++ b/gsk/gpu/gskgpunodeprocessor.c @@ -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 ));