mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
magnifier: Implement vfunc_snapshot
This commit is contained in:
parent
7da7238194
commit
add04b4008
1 changed files with 11 additions and 0 deletions
|
|
@ -75,6 +75,17 @@ const MouseSpriteContent = GObject.registerClass({
|
|||
textureNode.add_rectangle(actor.get_content_box());
|
||||
}
|
||||
|
||||
vfunc_snapshot(actor, snapshot) {
|
||||
if (!this._texture)
|
||||
return;
|
||||
|
||||
let [minFilter, magFilter] = actor.get_content_scaling_filters();
|
||||
|
||||
snapshot.push_texture_full(this._texture, null, minFilter, magFilter);
|
||||
snapshot.add_rectangle(actor.get_content_box());
|
||||
snapshot.pop();
|
||||
}
|
||||
|
||||
get texture() {
|
||||
return this._texture;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue