From c1ed034367586af971458ce78b2f3c16ee736a57 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 30 Oct 2023 23:38:21 +0100 Subject: [PATCH] rendernode: Use an exisiting function instead of reimplementing it --- gsk/gskrendernodeimpl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index 4e848bdb08..3c95b217e3 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -2348,10 +2348,7 @@ gsk_inset_shadow_node_draw (GskRenderNode *node, * We could remove the part of "box" where the blur doesn't * reach, but computing that is a bit tricky since the * rounded corners are on the "inside" of it. */ - r.x = floor (clip_box.bounds.origin.x); - r.y = floor (clip_box.bounds.origin.y); - r.width = ceil (clip_box.bounds.origin.x + clip_box.bounds.size.width) - r.x; - r.height = ceil (clip_box.bounds.origin.y + clip_box.bounds.size.height) - r.y; + rectangle_init_from_graphene (&r, &clip_box.bounds); remaining = cairo_region_create_rectangle (&r); /* First do the corners of box */