snapshot: Don't move shadows too much

dx/dy are relative to the node bounds, which are already moved by x/y.
This commit is contained in:
Timm Bäder
2019-10-11 13:47:40 +02:00
parent 2977e91aed
commit f4f060c843

View File

@@ -1900,8 +1900,8 @@ gtk_snapshot_append_inset_shadow (GtkSnapshot *snapshot,
node = gsk_inset_shadow_node_new (&real_outline,
color,
scale_x * dx + x,
scale_y * dy + y,
scale_x * dx,
scale_y * dy,
spread,
blur_radius);
@@ -1942,8 +1942,8 @@ gtk_snapshot_append_outset_shadow (GtkSnapshot *snapshot,
node = gsk_outset_shadow_node_new (&real_outline,
color,
scale_x * dx + x,
scale_y * dy + y,
scale_x * dx,
scale_y * dy,
spread,
blur_radius);