Implement reset instruction.
[guacamole-common-js.git] / src / main / resources / guacamole.js
index e49b155..434d16d 100644 (file)
@@ -426,7 +426,15 @@ Guacamole.Client = function(tunnel) {
             layer.rect(x, y, w, h);
 
         },
+        
+        "reset": function(parameters) {
 
+            var layer = getLayer(parseInt(parameters[0]));
+
+            layer.reset();
+
+        },
         "clip": function(parameters) {
 
             var layer = getLayer(parseInt(parameters[0]));
@@ -464,7 +472,7 @@ Guacamole.Client = function(tunnel) {
             cursor.resize(srcWidth, srcHeight);
 
             // Draw cursor to cursor layer
-            cursor.getLayer().copyRect(
+            cursor.getLayer().copy(
                 srcL,
                 srcX,
                 srcY,