Use composite operation instead of channel mask.
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Mon, 27 Feb 2012 19:41:28 +0000 (11:41 -0800)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Mon, 27 Feb 2012 19:41:28 +0000 (11:41 -0800)
src/main/resources/guacamole.js

index ea5f875..345a972 100644 (file)
@@ -84,7 +84,7 @@ Guacamole.Client = function(tunnel) {
 
     // Create cursor layer
     var cursor = new Guacamole.Client.LayerContainer(0, 0);
-    cursor.getLayer().setChannelMask(Guacamole.Layer.SRC);
+    cursor.getLayer().setCompositeOperation(Guacamole.Layer.SRC);
 
     // Position cursor layer
     var cursor_element = cursor.getElement();
@@ -349,7 +349,7 @@ Guacamole.Client = function(tunnel) {
             var y = parseInt(parameters[3]);
             var data = parameters[4];
 
-            layer.setChannelMask(channelMask);
+            layer.setCompositeOperation(channelMask);
 
             layer.draw(
                 x,
@@ -375,7 +375,7 @@ Guacamole.Client = function(tunnel) {
             var dstX = parseInt(parameters[7]);
             var dstY = parseInt(parameters[8]);
 
-            dstL.setChannelMask(channelMask);
+            dstL.setCompositeOperation(channelMask);
 
             dstL.copyRect(
                 srcL,
@@ -402,7 +402,7 @@ Guacamole.Client = function(tunnel) {
             var b = parseInt(parameters[8]);
             var a = parseInt(parameters[9]);
 
-            layer.setChannelMask(channelMask);
+            layer.setCompositeOperation(channelMask);
 
             layer.drawRect(
                 x, y, w, h,