Skip to content

Commit 07d21a3

Browse files
committed
clearRect, not fill with transparent
1 parent bf4a2cc commit 07d21a3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/web/js/trove/world.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,7 @@
532532
}
533533
var ctx = reusableCanvas.getContext("2d");
534534
ctx.save();
535-
ctx.fillStyle = "rgba(255,255,255,0)";
536-
ctx.fillRect(0, 0, width, height);
535+
ctx.clearRect(0, 0, width, height);
537536
ctx.restore();
538537
theImage.render(ctx, 0, 0);
539538
success([toplevelNode, reusableCanvasNode]);

0 commit comments

Comments
 (0)