From 727195c76743945c3b48e722e6a31922f0f8e436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 11 Mar 2019 17:30:39 -0400 Subject: [PATCH] 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);