[gnome-shell] magnifier: Use actor scaling filters on content texture node



commit 727195c76743945c3b48e722e6a31922f0f8e436
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Mon Mar 11 17:30:39 2019 -0400

    magnifier: Use actor scaling filters on content texture node
    
    Reuse the same filter values of the attached actor, instead of hardcoding the
    defaults.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/454

 js/ui/magnifier.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index b01e8b6b2..4717bb82c 100644
--- a/js/ui/magnifier.js
+++ b/js/ui/magnifier.js
@@ -66,10 +66,9 @@ var MouseSpriteContent = GObject.registerClass({
             return;
 
         let color = Clutter.Color.get_static(Clutter.StaticColor.WHITE);
+        let [minFilter, magFilter] = actor.get_content_scaling_filters();
         let textureNode = new Clutter.TextureNode(this._texture,
-                                                  color,
-                                                  Clutter.ScalingFilter.NEAREST,
-                                                  Clutter.ScalingFilter.NEAREST);
+                                                  color, minFilter, magFilter);
         textureNode.set_name('MouseSpriteContent');
         node.add_child(textureNode);
 


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