[gnome-shell/wip/fmuellner/magnifier-cursor: 13/13] magnifier: Fix color argument
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/magnifier-cursor: 13/13] magnifier: Fix color argument
- Date: Tue, 12 Mar 2019 00:27:57 +0000 (UTC)
commit e6ad224827fcac4942731e37b3a88be9a0cf2a11
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Mar 6 18:26:41 2019 +0100
magnifier: Fix color argument
Clutter.TextureNode takes a Clutter.Color, not a Cogl.Color.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/1020
js/ui/magnifier.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index 753151ac9..546ab1d98 100644
--- a/js/ui/magnifier.js
+++ b/js/ui/magnifier.js
@@ -1,6 +1,6 @@
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
-const { Atspi, Clutter, Cogl, GDesktopEnums,
+const { Atspi, Clutter, GDesktopEnums,
Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
const Mainloop = imports.mainloop;
const Signals = imports.signals;
@@ -65,9 +65,7 @@ var MouseSpriteContent = GObject.registerClass({
if (!this._texture)
return;
- let color = new Cogl.Color();
- color.init_from_4ub(0, 0, 0, 0);
-
+ let color = new Clutter.Color();
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]