Browse Source

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.
master
Fen Dweller 4 years ago
parent
commit
9feba9df72
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      macrovision.js

+ 1
- 2
macrovision.js View File

@@ -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) {


Loading…
Cancel
Save