mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Stub implementation of layer/buffer support (initial compat for new version of protocol)
This commit is contained in:
@@ -97,21 +97,11 @@ function Layer(width, height) {
|
||||
};
|
||||
|
||||
|
||||
display.copyRect = function(srcx, srcy, w, h, x, y) {
|
||||
display.copyRect = function(srcLayer, srcx, srcy, w, h, x, y) {
|
||||
var updateId = currentUpdate++;
|
||||
|
||||
setUpdate(updateId, function() {
|
||||
displayContext.drawImage(display, srcx, srcy, w, h, x, y, w, h);
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
display.drawRect = function(x, y, w, h, color) {
|
||||
var updateId = currentUpdate++;
|
||||
|
||||
setUpdate(updateId, function() {
|
||||
displayContext.fillStyle = color;
|
||||
displayContext.fillRect(x, y, w, h);
|
||||
displayContext.drawImage(srcLayer, srcx, srcy, w, h, x, y, w, h);
|
||||
});
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user