mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 23:21:21 +00:00
Minor performance enhancements - do NOT take thumbnails every 1000ms, and only use transfer function if not NOP and not a simple copy.
This commit is contained in:
@@ -1470,21 +1470,35 @@ Guacamole.Client = function(tunnel) {
|
||||
var srcY = parseInt(parameters[2]);
|
||||
var srcWidth = parseInt(parameters[3]);
|
||||
var srcHeight = parseInt(parameters[4]);
|
||||
var transferFunction = Guacamole.Client.DefaultTransferFunction[parameters[5]];
|
||||
var function_index = parseInt(parameters[5]);
|
||||
var dstL = getLayer(parseInt(parameters[6]));
|
||||
var dstX = parseInt(parameters[7]);
|
||||
var dstY = parseInt(parameters[8]);
|
||||
|
||||
dstL.transfer(
|
||||
srcL,
|
||||
srcX,
|
||||
srcY,
|
||||
srcWidth,
|
||||
srcHeight,
|
||||
dstX,
|
||||
dstY,
|
||||
transferFunction
|
||||
);
|
||||
/* SRC */
|
||||
if (function_index === 0x3)
|
||||
dstL.put(
|
||||
srcL,
|
||||
srcX,
|
||||
srcY,
|
||||
srcWidth,
|
||||
srcHeight,
|
||||
dstX,
|
||||
dstY
|
||||
);
|
||||
|
||||
/* Anything else that isn't a NO-OP */
|
||||
else if (function_index !== 0x5)
|
||||
dstL.transfer(
|
||||
srcL,
|
||||
srcX,
|
||||
srcY,
|
||||
srcWidth,
|
||||
srcHeight,
|
||||
dstX,
|
||||
dstY,
|
||||
Guacamole.Client.DefaultTransferFunction[function_index]
|
||||
);
|
||||
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user