[gnome-shell] magnifier: Use all color channels to paint content texture node
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] magnifier: Use all color channels to paint content texture node
- Date: Mon, 1 Apr 2019 20:46:22 +0000 (UTC)
commit 42472510209ec6b350aa58b9653a71fdab05654d
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Mon Mar 11 20:39:29 2019 +0000
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]