mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Fixed autosize -> layer.autosize.
This commit is contained in:
@@ -278,7 +278,7 @@ Guacamole.Layer = function(width, height) {
|
|||||||
*/
|
*/
|
||||||
this.drawImage = function(x, y, image) {
|
this.drawImage = function(x, y, image) {
|
||||||
scheduleTask(function() {
|
scheduleTask(function() {
|
||||||
if (autosize != 0) fitRect(x, y, image.width, image.height);
|
if (layer.autosize != 0) fitRect(x, y, image.width, image.height);
|
||||||
displayContext.drawImage(image, x, y);
|
displayContext.drawImage(image, x, y);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -299,7 +299,7 @@ Guacamole.Layer = function(width, height) {
|
|||||||
image.onload = function() {
|
image.onload = function() {
|
||||||
|
|
||||||
task.handler = function() {
|
task.handler = function() {
|
||||||
if (autosize != 0) fitRect(x, y, image.width, image.height);
|
if (layer.autosize != 0) fitRect(x, y, image.width, image.height);
|
||||||
displayContext.drawImage(image, x, y);
|
displayContext.drawImage(image, x, y);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -347,7 +347,7 @@ Guacamole.Layer = function(width, height) {
|
|||||||
this.copyRect = function(srcLayer, srcx, srcy, srcw, srch, x, y) {
|
this.copyRect = function(srcLayer, srcx, srcy, srcw, srch, x, y) {
|
||||||
|
|
||||||
function doCopyRect() {
|
function doCopyRect() {
|
||||||
if (autosize != 0) fitRect(x, y, srcw, srch);
|
if (layer.autosize != 0) fitRect(x, y, srcw, srch);
|
||||||
displayContext.drawImage(srcLayer, srcx, srcy, srcw, srch, x, y, srcw, srch);
|
displayContext.drawImage(srcLayer, srcx, srcy, srcw, srch, x, y, srcw, srch);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -384,7 +384,7 @@ Guacamole.Layer = function(width, height) {
|
|||||||
*/
|
*/
|
||||||
this.clearRect = function(x, y, w, h) {
|
this.clearRect = function(x, y, w, h) {
|
||||||
scheduleTask(function() {
|
scheduleTask(function() {
|
||||||
if (autosize != 0) fitRect(x, y, w, h);
|
if (layer.autosize != 0) fitRect(x, y, w, h);
|
||||||
displayContext.clearRect(x, y, w, h);
|
displayContext.clearRect(x, y, w, h);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user