From f557ddeb2ab692f5fbbc31b1e7724461a4565c97 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 7 Aug 2013 11:32:58 +0200 Subject: Fixed stage costume scaling & misplacing bug Thanks, Josh, for the report! --- objects.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'objects.js') diff --git a/objects.js b/objects.js index 0a79cf7..e01494f 100644 --- a/objects.js +++ b/objects.js @@ -3551,8 +3551,8 @@ StageMorph.prototype.drawNew = function () { ctx.scale(this.scale, this.scale); ctx.drawImage( this.costume.contents, - (this.width() - this.costume.width() * this.scale) / 2, - (this.height() - this.costume.height() * this.scale) / 2 + (this.width() / this.scale - this.costume.width()) / 2, + (this.height() / this.scale - this.costume.height()) / 2 ); } }; @@ -4426,10 +4426,6 @@ StageMorph.prototype.thumbnail = function (extentPoint, excludedSprite) { return trg; }; -StageMorph.prototype.fullThumbnail = function (extentPoint, excludedSprite) { - return this.thumbnail(extentPoint, excludedSprite); -}; - // StageMorph cloning overrice StageMorph.prototype.createClone = nop; -- cgit v1.3.1