[gtk] snapshot: Don't move shadows too much
- From: Timm Bäder <baedert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk] snapshot: Don't move shadows too much
 
- Date: Fri, 11 Oct 2019 14:51:31 +0000 (UTC)
 
commit f4f060c843e4a3767bdcc0287c500eeddb061ad2
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 11 13:47:40 2019 +0200
    snapshot: Don't move shadows too much
    
    dx/dy are relative to the node bounds, which are already moved by x/y.
 gtk/gtksnapshot.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtksnapshot.c b/gtk/gtksnapshot.c
index ab38d09f3c..e63101321d 100644
--- 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);
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]