summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/objects.js b/objects.js
index 905b3d1..17450dd 100644
--- a/objects.js
+++ b/objects.js
@@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.objects = '2014-October-01';
+modules.objects = '2014-October-06';
var SpriteMorph;
var StageMorph;
@@ -4378,8 +4378,12 @@ StageMorph.prototype.drawOn = function (aCanvas, aRect) {
);
// pen trails
- ws = w / this.scale;
- hs = h / this.scale;
+ ws = Math.floor(
+ Math.min(w / this.scale, this.image.width * this.scale)
+ );
+ hs = Math.floor(
+ Math.min(h / this.scale, this.image.height * this.scale)
+ );
context.save();
context.scale(this.scale, this.scale);
context.drawImage(