Przeglądaj źródła

Fix ruler drawing on high-DPI displays

They were being drawn too large when taking a screenshot
master
Fen Dweller 4 lat temu
rodzic
commit
3c2ef5ac42
1 zmienionych plików z 3 dodań i 0 usunięć
  1. +3
    -0
      macrovision.js

+ 3
- 0
macrovision.js Wyświetl plik

@@ -5316,7 +5316,10 @@ function renderToCanvas() {


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


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


Ładowanie…
Anuluj
Zapisz