*/
this.drawImage = function(x, y, image) {
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);
});
};
image.onload = 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);
};
this.copyRect = function(srcLayer, srcx, srcy, srcw, srch, x, y) {
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);
}
*/
this.clearRect = function(x, y, w, h) {
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);
});
};