From 42472510209ec6b350aa58b9653a71fdab05654d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 11 Mar 2019 20:39:29 +0000 Subject: [PATCH] magnifier: Use all color channels to paint content texture node In order to paint all the color channels of the content texture we need to set the color channels to 255, so instead of doing this manually we can just reuse the static color definition for white. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1020 --- js/ui/magnifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 4a21b71e5..3d05615ee 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -65,7 +65,7 @@ var MouseSpriteContent = GObject.registerClass({ if (!this._texture) return; - let color = new Clutter.Color(); + let color = Clutter.Color.get_static(Clutter.StaticColor.WHITE); let textureNode = new Clutter.TextureNode(this._texture, color, Clutter.ScalingFilter.NEAREST,