forked from AuroraMiddleware/gtk
gsk: Increase blur node bounds by blur radius
Otherwise, the resulting node will be too small and the result looks clipped.
This commit is contained in:
parent
c02090b1f6
commit
cac3e7705d
@ -4336,6 +4336,7 @@ gsk_blur_node_new (GskRenderNode *child,
|
||||
double radius)
|
||||
{
|
||||
GskBlurNode *self;
|
||||
float clip_radius = gsk_cairo_blur_compute_pixels (radius);
|
||||
|
||||
g_return_val_if_fail (GSK_IS_RENDER_NODE (child), NULL);
|
||||
|
||||
@ -4345,6 +4346,8 @@ gsk_blur_node_new (GskRenderNode *child,
|
||||
self->radius = radius;
|
||||
|
||||
graphene_rect_init_from_rect (&self->render_node.bounds, &child->bounds);
|
||||
graphene_rect_inset (&self->render_node.bounds,
|
||||
- clip_radius, - clip_radius);
|
||||
|
||||
return &self->render_node;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user