magnifier: Fix color argument
Clutter.TextureNode takes a Clutter.Color, not a Cogl.Color. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1020
This commit is contained in:
parent
187c2193e8
commit
ede0fd8660
@ -1,6 +1,6 @@
|
|||||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
// -*- 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;
|
Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
|
||||||
const Mainloop = imports.mainloop;
|
const Mainloop = imports.mainloop;
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
@ -65,9 +65,7 @@ var MouseSpriteContent = GObject.registerClass({
|
|||||||
if (!this._texture)
|
if (!this._texture)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let color = new Cogl.Color();
|
let color = new Clutter.Color();
|
||||||
color.init_from_4ub(0, 0, 0, 0);
|
|
||||||
|
|
||||||
let textureNode = new Clutter.TextureNode(this._texture,
|
let textureNode = new Clutter.TextureNode(this._texture,
|
||||||
color,
|
color,
|
||||||
Clutter.ScalingFilter.NEAREST,
|
Clutter.ScalingFilter.NEAREST,
|
||||||
|
Loading…
Reference in New Issue
Block a user