mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
rendernode: Use an exisiting function instead of reimplementing it
This commit is contained in:
parent
cc3e25b163
commit
c1ed034367
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user