From 9feba9df72ac32a2f606d34cf992d19138da9a44 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 23 Oct 2021 17:15:33 -0400 Subject: [PATCH] Fix rulers getting drawn repeatedly/in wrong places in screenshots They were getting drawn once for every entity, and were also getting moved around weirdly. --- macrovision.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/macrovision.js b/macrovision.js index ed55041d..9e61e961 100644 --- a/macrovision.js +++ b/macrovision.js @@ -5003,11 +5003,10 @@ function renderToCanvas() { ctx.rotate(entity.rotation); ctx.drawImage(img, -xSize/2, -ySize/2, xSize, ySize); ctx.restore(); - ctx.drawImage(document.querySelector("#rulers"), 0, 0); - ctx.translate(-xSize/2, -ySize/2); ctx.filter = oldFilter }); + ctx.drawImage(document.querySelector("#rulers"), 0, 0); } function exportCanvas(callback) {