From a1dda0ec3cc37f62d073817856a007ac645f79bf Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 13 Feb 2024 21:22:13 +0100 Subject: [PATCH] gpu: Adjust shadows clip by shadow offset When computing the clip of the shadow rect, don't forget that it will ultimately be offset by the shadow offset. Fixes #6425 --- gsk/gpu/gskgpunodeprocessor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gsk/gpu/gskgpunodeprocessor.c b/gsk/gpu/gskgpunodeprocessor.c index dce6f2ee3a..18ffdd1acd 100644 --- a/gsk/gpu/gskgpunodeprocessor.c +++ b/gsk/gpu/gskgpunodeprocessor.c @@ -1010,6 +1010,8 @@ gsk_gpu_node_processor_blur_op (GskGpuNodeProcessor *self, /* FIXME: Handle clip radius growing the clip too much */ gsk_gpu_node_processor_get_clip_bounds (self, &clip_rect); + clip_rect.origin.x -= shadow_offset->x; + clip_rect.origin.y -= shadow_offset->y; graphene_rect_inset (&clip_rect, 0.f, -clip_radius); if (!gsk_rect_intersection (rect, &clip_rect, &intermediate_rect)) return;