[gnome-shell] st: Fix painting unblurred texture



commit ec1b0990174be6e5a5859cde272ddda6931a62e3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Dec 17 02:05:03 2020 -0300

    st: Fix painting unblurred texture
    
    ClutterActorBox encapsulates (x1, y1, x2, y2), but the
    second pair of values to the texture node are width and
    height, leading to incorrectly rendering the unblurred
    texture.
    
    Fix that by properly making these values be x2 and y2.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3497
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1542>

 src/st/st-private.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/st/st-private.c b/src/st/st-private.c
index 8387bbc8df..4d8952f5eb 100644
--- a/src/st/st-private.c
+++ b/src/st/st-private.c
@@ -443,7 +443,8 @@ _st_create_shadow_pipeline (StShadow    *shadow_spec,
   clutter_paint_node_add_rectangle (texture_node,
                                     &(ClutterActorBox) {
                                       half, half,
-                                      src_width, src_height,
+                                      src_width + half,
+                                      src_height + half,
                                     });
 
   paint_context =


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]