mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
magnifier: Stop using Clutter.StaticColor
This was removed from mutter in commit 72c2d8913. Instead of manually creating a white color, we can just rely on ClutterTextureNode creating one for us when passing null. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7480 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3237>
This commit is contained in:
parent
5d58e41cbc
commit
8616ec00a0
1 changed files with 1 additions and 2 deletions
|
|
@ -65,10 +65,9 @@ const MouseSpriteContent = GObject.registerClass({
|
|||
if (!this._texture)
|
||||
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, minFilter, magFilter);
|
||||
null, minFilter, magFilter);
|
||||
textureNode.set_name('MouseSpriteContent');
|
||||
node.add_child(textureNode);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue