Skip to content

Commit

Permalink
Correct clearrect bug when rendering scenes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dyoo committed Mar 2, 2013
1 parent fc4017a commit af6d034
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions war/js/mzscheme-vm/support.js
Expand Up @@ -10707,9 +10707,7 @@ if (typeof(world) === 'undefined') {
SceneImage.prototype.render = function(ctx, x, y) {
var i;
var childImage, childX, childY;
// Clear the scene.
ctx.clearRect(x, y, this.width, this.height);
// Then ask every object to render itself.
// Ask every object to render itself.
for(i = 0; i < this.children.length; i++) {
childImage = this.children[i][0];
childX = this.children[i][1];
Expand Down

0 comments on commit af6d034

Please sign in to comment.