Fixed autosize -> layer.autosize.

This commit is contained in:
Michael Jumper
2011-07-06 15:33:11 -07:00
parent 649d873373
commit 867e64637f

View File

@@ -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);
}); });
}; };