From ee34781a13b46f121c8fd6359eb4eb7f6ebf73ee Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 13 Feb 2024 21:44:02 +0100 Subject: [PATCH] gpu: Pixel-align the blur rectangle Fixes blurriness in shadows. Not sure to do a proper test for this feature. Usually proper pixel alignment is tested by drawing a crips line and checking that it is indeed crisp. But we are testing the blur operation here... Fixes #6380 --- gsk/gpu/gskgpunodeprocessor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gsk/gpu/gskgpunodeprocessor.c b/gsk/gpu/gskgpunodeprocessor.c index 732d18fbbe..e9e8a01d76 100644 --- a/gsk/gpu/gskgpunodeprocessor.c +++ b/gsk/gpu/gskgpunodeprocessor.c @@ -1015,6 +1015,8 @@ gsk_gpu_node_processor_blur_op (GskGpuNodeProcessor *self, if (!gsk_rect_intersection (rect, &clip_rect, &intermediate_rect)) return; + rect_round_to_pixels (&intermediate_rect, &self->scale, &self->offset, &intermediate_rect); + intermediate = gsk_gpu_node_processor_init_draw (&other, self->frame, source_depth,