mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-08 21:34:36 +00:00
spice-html5 updated.
This commit is contained in:
20
static/js/spice-html5/cursor.js
Normal file → Executable file
20
static/js/spice-html5/cursor.js
Normal file → Executable file
@@ -73,6 +73,12 @@ SpiceCursorConn.prototype.process_channel_message = function(msg)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_MOVE)
|
||||
{
|
||||
this.known_unimplemented(msg.type, "Cursor Move");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_HIDE)
|
||||
{
|
||||
DEBUG > 1 && console.log("SpiceMsgCursorHide");
|
||||
@@ -80,6 +86,12 @@ SpiceCursorConn.prototype.process_channel_message = function(msg)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_TRAIL)
|
||||
{
|
||||
this.known_unimplemented(msg.type, "Cursor Trail");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_RESET)
|
||||
{
|
||||
DEBUG > 1 && console.log("SpiceMsgCursorReset");
|
||||
@@ -87,6 +99,12 @@ SpiceCursorConn.prototype.process_channel_message = function(msg)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_INVAL_ONE)
|
||||
{
|
||||
this.known_unimplemented(msg.type, "Cursor Inval One");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (msg.type == SPICE_MSG_CURSOR_INVAL_ALL)
|
||||
{
|
||||
DEBUG > 1 && console.log("SpiceMsgCursorInvalAll");
|
||||
@@ -100,7 +118,7 @@ SpiceCursorConn.prototype.process_channel_message = function(msg)
|
||||
SpiceCursorConn.prototype.set_cursor = function(cursor)
|
||||
{
|
||||
var pngstr = create_rgba_png(cursor.header.height, cursor.header.width, cursor.data);
|
||||
var curstr = 'url(data:image/png,' + pngstr + ') ' +
|
||||
var curstr = 'url(data:image/png,' + pngstr + ') ' +
|
||||
cursor.header.hot_spot_x + ' ' + cursor.header.hot_spot_y + ", default";
|
||||
var screen = document.getElementById(this.parent.screen_id);
|
||||
screen.style.cursor = 'auto';
|
||||
|
||||
Reference in New Issue
Block a user