Use composite operation instead of channel mask.

This commit is contained in:
Michael Jumper
2012-02-27 11:41:28 -08:00
parent 6bfa0d7ea1
commit 9d3ce8c474

View File

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