Ver código fonte

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 anos atrás
pai
commit
9feba9df72
1 arquivos alterados com 1 adições e 2 exclusões
  1. +1
    -2
      macrovision.js

+ 1
- 2
macrovision.js Ver arquivo

@@ -5003,11 +5003,10 @@ function renderToCanvas() {
ctx.rotate(entity.rotation); ctx.rotate(entity.rotation);
ctx.drawImage(img, -xSize/2, -ySize/2, xSize, ySize); ctx.drawImage(img, -xSize/2, -ySize/2, xSize, ySize);
ctx.restore(); ctx.restore();
ctx.drawImage(document.querySelector("#rulers"), 0, 0);
ctx.translate(-xSize/2, -ySize/2);


ctx.filter = oldFilter ctx.filter = oldFilter
}); });
ctx.drawImage(document.querySelector("#rulers"), 0, 0);
} }


function exportCanvas(callback) { function exportCanvas(callback) {


Carregando…
Cancelar
Salvar