Fix cursor - copyRect() has been renamed to copy().
[guacamole-common-js.git] / src / main / resources / guacamole.js
index 0cbf024..d4a52ba 100644 (file)
@@ -435,6 +435,21 @@ Guacamole.Client = function(tunnel) {
 
         },
 
+        "cfill": function(parameters) {
+
+            var channelMask = parseInt(parameters[0]);
+            var layer = getLayer(parseInt(parameters[1]));
+            var r = parseInt(parameters[2]);
+            var g = parseInt(parameters[3]);
+            var b = parseInt(parameters[4]);
+            var a = parseInt(parameters[5]);
+
+            layer.setChannelMask(channelMask);
+
+            layer.fillColor(r, g, b, a);
+
+        },
+
         "cursor": function(parameters) {
 
             cursorHotspotX = parseInt(parameters[0]);
@@ -449,7 +464,7 @@ Guacamole.Client = function(tunnel) {
             cursor.resize(srcWidth, srcHeight);
 
             // Draw cursor to cursor layer
-            cursor.getLayer().copyRect(
+            cursor.getLayer().copy(
                 srcL,
                 srcX,
                 srcY,