GUACAMOLE-177: Tie all layer property changes to display frame flush.

This commit is contained in:
Michael Jumper
2016-10-06 21:51:40 -07:00
parent 8de93ad4ea
commit 47f2b95abc
2 changed files with 90 additions and 4 deletions

View File

@@ -865,7 +865,7 @@ Guacamole.Client = function(tunnel) {
// Remove from parent
var layer = getLayer(layer_index);
layer.dispose();
display.dispose(layer);
// Delete reference
delete layers[layer_index];
@@ -893,7 +893,7 @@ Guacamole.Client = function(tunnel) {
// Only valid for visible layers (not buffers)
if (layer_index >= 0) {
var layer = getLayer(layer_index);
layer.distort(a, b, c, d, e, f);
display.distort(layer, a, b, c, d, e, f);
}
},
@@ -1049,7 +1049,7 @@ Guacamole.Client = function(tunnel) {
if (layer_index > 0 && parent_index >= 0) {
var layer = getLayer(layer_index);
var parent = getLayer(parent_index);
layer.move(parent, x, y, z);
display.move(layer, parent, x, y, z);
}
},
@@ -1151,7 +1151,7 @@ Guacamole.Client = function(tunnel) {
// Only valid for visible layers (not buffers)
if (layer_index >= 0) {
var layer = getLayer(layer_index);
layer.shade(a);
display.shade(layer, a);
}
},