From e889dc224e68a634e1ecfc64d39f5b5432c4322e Mon Sep 17 00:00:00 2001 From: Viraj Mahesh Date: Tue, 25 Feb 2014 17:34:31 -0800 Subject: Fixed errors that arose from not using fullImageClassic() --- objects.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/objects.js b/objects.js index f7ce467..1c55231 100644 --- a/objects.js +++ b/objects.js @@ -3703,12 +3703,11 @@ SpriteMorph.prototype.reactToDropOf = function (morph, hand) { }; SpriteMorph.prototype.doScreenshot = function() { - console.log('Testing screenshot'); - var parent = this.parentThatIsA(StageMorph); - var image = parent.fullImageClassic(); + var stage = this.parentThatIsA(StageMorph); + var canvas = stage.fullImageClassic(); var ide = this.parentThatIsA(IDE_Morph); - var costume = new Costume(image); - ide.currentSprite.addCostume(image); + var costume = new Costume(canvas, ""); + ide.currentSprite.addCostume(costume); }; // SpriteHighlightMorph ///////////////////////////////////////////////// -- cgit v1.3.1