projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2977e91
)
snapshot: Don't move shadows too much
author
Timm Bäder
<mail@baedert.org>
Fri, 11 Oct 2019 11:47:40 +0000
(13:47 +0200)
committer
Timm Bäder
<mail@baedert.org>
Fri, 11 Oct 2019 11:47:40 +0000
(13:47 +0200)
dx/dy are relative to the node bounds, which are already moved by x/y.
gtk/gtksnapshot.c
patch
|
blob
|
history
diff --git
a/gtk/gtksnapshot.c
b/gtk/gtksnapshot.c
index ab38d09f3cd70febf9c283acf86f71b61f58a572..e63101321d5a2262aee422e64265c00bba69973b 100644
(file)
--- a/
gtk/gtksnapshot.c
+++ b/
gtk/gtksnapshot.c
@@
-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);